-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
33 lines (29 loc) · 1.3 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import 'react-native-gesture-handler';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {useFonts,
NotoSansKR_100Thin, NotoSansKR_300Light,
NotoSansKR_400Regular, NotoSansKR_500Medium,
NotoSansKR_700Bold, NotoSansKR_900Black} from '@expo-google-fonts/noto-sans-kr';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import {LoginScreen} from "./src/screens/LoginScreen";
import {SignUpScreen} from "./src/screens/SignUpScreen";
import {MainScreen} from "./src/screens/MainScreen";
const Stack = createStackNavigator();
export default function App() {
const [fontsLoaded] = useFonts({
NotoSansKR_100Thin, NotoSansKR_300Light, NotoSansKR_400Regular,
NotoSansKR_500Medium, NotoSansKR_700Bold, NotoSansKR_900Black
});
if (!fontsLoaded) return null;
return <SafeAreaProvider>
<NavigationContainer>
<Stack.Navigator screenOptions={{gestureEnabled: false,headerShown: false}}>
<Stack.Screen name="Login" component={LoginScreen}/>
<Stack.Screen name="SignUp" component={SignUpScreen}/>
<Stack.Screen name="MainScreen" component={MainScreen}/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
}