-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathApp.js
61 lines (56 loc) · 1.54 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
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
import React from 'react';
import Splash from '~/screens/Splash';
import StartUp from '~/screens/StartUp';
import Details from './src/screens/Details';
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from '@react-navigation/native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { colors } from '~/constants/theme';
import Tabs from '~/navigation/Tabs';
import { store } from '~/redux/store'
import { Provider } from 'react-redux'
import Test from './src/screens/Test';
const Stack = createStackNavigator();
const App = () => {
return (
<Provider store={store}>
<SafeAreaView
style={{
flex: 1,
backgroundColor: colors.black
}}
>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false
}}
initialRouteName={'Splash'}
>
{/* <Stack.Screen
name="Test"
component={Test}
/> */}
<Stack.Screen
name="Tabs"
component={Tabs}
/>
<Stack.Screen
name="Splash"
component={Splash}
/>
<Stack.Screen
name="Details"
component={Details}
/>
<Stack.Screen
name="StartUp"
component={StartUp}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
</Provider>
)
}
export default App;