-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
35 lines (33 loc) · 1.11 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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Home, Room, Game ,Config} from './screens';
import { Provider } from 'react-redux';
import store from './redux/store';
const Stack = createNativeStackNavigator();
function App(): JSX.Element {
return (
<Provider store={store} >
<NavigationContainer>
<Stack.Navigator
initialRouteName="Home"
screenOptions={{
headerTitle: '',
headerTintColor: '#b7a400',
headerStyle: {
backgroundColor: '#161718',
},
contentStyle: {
backgroundColor: '#161718',
},
}}>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Room" component={Room} />
<Stack.Screen name='Config' component={Config} options={{ headerShown: false }} />
<Stack.Screen name="Game" component={Game} options={{ headerShown: false }} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}
export default App;