-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
93 lines (89 loc) · 2.39 KB
/
App.tsx
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import {Text} from 'react-native'
import {SafeAreaProvider} from 'react-native-safe-area-context'
import {NavigationContainer} from '@react-navigation/native'
import useRememoryFonts from './infrastructures/hooks/useRememoryFonts'
import Pages from './pages'
import {commonStyles} from './styles/common'
import LoadingAnimation from './components/LoadingAnimation'
import {createNativeStackNavigator} from '@react-navigation/native-stack'
import OnBoarding from './pages/onBoarding'
import Home from './pages/Home/Home'
import ChatPage from './pages/Chat/ChatPage'
import Categories from './pages/Categories/Categories'
import Result from './pages/Result'
import Upload from './pages/Upload/Upload'
import COLORS from './styles/colors'
import SplashScreen from './pages/SplashScreen'
const Stack = createNativeStackNavigator()
export default function App() {
const {fontsLoaded} = useRememoryFonts()
if (!fontsLoaded) {
return <Text>Loading...</Text>
}
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerStyle: {
backgroundColor: COLORS.BG_BLACK,
},
headerTintColor: 'white',
}}
initialRouteName='x'
>
<Stack.Screen
name='SplashScreen'
component={SplashScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name='OnBoarding'
component={OnBoarding}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name='Home'
component={Home}
options={{
headerTitle: '',
}}
/>
<Stack.Screen
name='Chat'
component={ChatPage}
options={{
headerTitle: '',
}}
/>
<Stack.Screen
name='Category'
component={Categories}
options={{
headerTitle: '',
}}
/>
<Stack.Screen
name='Result'
component={Result}
options={{
headerTitle: '',
}}
/>
<Stack.Screen
name='Upload'
component={Upload}
options={{
headerTitle: '',
}}
/>
</Stack.Navigator>
</NavigationContainer>
// <SafeAreaProvider style={commonStyles.container}>
// <Pages />
// </SafeAreaProvider>
)
}