-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
36 lines (33 loc) · 1015 Bytes
/
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
import 'react-native-reanimated';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { StatusBar } from 'expo-status-bar';
import { SafeAreaView } from 'react-native';
import Menu from './features/menu/Menu';
import Game from './features/game/Game';
import React from 'react';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<SafeAreaView style={{ flex: 1 }}>
<StatusBar style='auto' hidden />
<NavigationContainer>
<Stack.Navigator
initialRouteName="Menu"
screenOptions={{
headerShown: false
}}>
<Stack.Screen
name='Menu'
component={Menu}
// initialParams={{ userId: user.id }}
/>
<Stack.Screen
name='Game'
component={Game}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView >
);
}