-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
28 lines (25 loc) · 810 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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import GameScreen from './src/screens/GameScreen';
import ResultScreen from './src/screens/ResultScreen';
const Stack = createStackNavigator();
const AppNavigator: React.FC = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Game">
<Stack.Screen
name="Game"
component={GameScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Result"
component={ResultScreen as React.ComponentType<any>}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default AppNavigator;