forked from PlayTicket/plket_front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
62 lines (58 loc) · 1.75 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
62
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
// Screens
import Start from './src/screens/StartScreen';
import NavTabs from './src/screens/NavTabs';
import Home from './src/screens/HomeScreen';
import AddTicket from './src/screens/AddTicketScreen';
import Seat from './src/screens/SeatScreen';
import MyPage from './src/screens/MyPageScreen';
import {SafeAreaProvider} from 'react-native-safe-area-context';
const MainStack = createStackNavigator();
const App = () => {
return (
<SafeAreaProvider>
<NavigationContainer>
<MainStack.Navigator
initialRouteName={'Home'}
headerMode="none"
screenOptions={{
headerShown: false,
}}>
<MainStack.Screen
name="StartScreen"
component={Start}
options={{headerShown: false}}
/>
<MainStack.Screen
name="NavTabs"
component={NavTabs}
options={{headerShown: false}}
/>
<MainStack.Screen
name="HomeScreen"
component={Home}
options={{headerShown: false}}
/>
<MainStack.Screen
name="AddTicketScreen"
component={AddTicket}
options={{headerShown: false}}
/>
<MainStack.Screen
name="SeatScreen"
component={Seat}
options={{headerShown: false}}
/>
<MainStack.Screen
name="MyPage"
component={MyPage}
options={{headerShown: false}}
/>
</MainStack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
);
};
export default App;