feat: 로그인 화면 및 공통 속성 생성
This commit is contained in:
27
App.tsx
27
App.tsx
@@ -1,20 +1,17 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { NavigationContainer } from "@react-navigation/native";
|
||||
import React from "react";
|
||||
import { enableScreens } from "react-native-screens";
|
||||
import AuthGate from "./src/navigation/AuthGate";
|
||||
import { AuthProvider } from "./src/store/auth";
|
||||
|
||||
enableScreens();
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>Open up App.tsx to start working on your app!</Text>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
<AuthProvider>
|
||||
<NavigationContainer>
|
||||
<AuthGate />
|
||||
</NavigationContainer>
|
||||
</AuthProvider>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: '#fff',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user