-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
109 lines (96 loc) · 3.33 KB
/
App.js
File metadata and controls
109 lines (96 loc) · 3.33 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import React from 'react'
import {
StatusBar
} from 'react-native'
import { colors } from './src/styles/Colors';
import { NavigationContainer } from '@react-navigation/native';
import SystemNavigationBar from 'react-native-system-navigation-bar';
import BottomTab from './src/routes/BottomTab';
import Splash from './src/screens/splash';
import OnboardingNavigation from './src/routes/OnboardingNavigation';
import AuthenticationNavigation from './src/routes/AuthenticationNavigation';
import Profile from './src/screens/profile';
import AudioDetail from './src/screens/audio-detail';
import Toast from 'react-native-toast-message';
import ParentsControl from './src/screens/parents-control';
import OfflineDownloads from './src/screens/offline-downloads';
import History from './src/screens/history';
import GetStarted from './src/screens/get-started';
import MailSent from './src/screens/mail-sent';
import ResetPassword from './src/screens/reset-password';
import VideoDetail from './src/screens/video-detail';
import StorySheetDetail from './src/screens/story-sheet-detail';
// re-assemble styles
const App = () => {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<StatusBar backgroundColor={colors.secondary} />
<Stack.Navigator
screenOptions={{ headerShown: false, animation: 'simple_push' }}
>
<Stack.Screen name='Splash' component={Splash} />
<Stack.Screen name='OnboardingNavigation' component={OnboardingNavigation} />
<Stack.Screen name='AuthenticationNavigation' component={AuthenticationNavigation} />
<Stack.Screen name='BottomTab' component={BottomTab} />
<Stack.Screen
name='Profile'
component={Profile}
/>
<Stack.Screen
name='AudioDetail'
component={AudioDetail}
options={{ animation: 'slide_from_bottom' }}
/>
<Stack.Screen
name='ParentsControl'
component={ParentsControl}
options={{ animation: 'flip' }}
/>
<Stack.Screen
name='OfflineDownloads'
component={OfflineDownloads}
options={{ animation: 'flip' }}
/>
<Stack.Screen
name='History'
component={History}
options={{ animation: 'flip' }}
/>
<Stack.Screen
name='MailSent'
component={MailSent}
options={{ animation: 'flip' }}
/>
<Stack.Screen
name='ResetPassword'
component={ResetPassword}
options={{ animation: 'flip' }}
/>
<Stack.Screen
name='VideoDetail'
component={VideoDetail}
options={{ animation: 'simple_push' }}
/>
<Stack.Screen
name='StorySheetDetail'
component={StorySheetDetail}
options={{ animation: 'simple_push' }}
/>
</Stack.Navigator>
<Toast />
</NavigationContainer>
// <NavigationContainer>
// <StatusBar backgroundColor={colors.secondary} />
// <Stack.Navigator screenOptions={{ headerShown: false }}>
// <Stack.Screen
// name='some'
// component={Splash}
// />
// </Stack.Navigator>
// <Toast />
// </NavigationContainer>
)
}
export default App