This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
63 lines (61 loc) · 2.59 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
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
63
import { NavigationContainer } from '@react-navigation/native'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import LogIn from './src/LogInScreen/LogIn'
import Main from './src/MainScreen/Main'
import PostDetail from './src/PostDetailScreen/PostDetail'
import PostWrite from './src/PostWriteScreen/PostWrite'
import PrinterReservationCalendar from './src/PrinterReservation/view/PrinterReservationCalendar'
import PrinterInfo from './src/PrinterReservation/view/PrinterInfo'
const Stack = createNativeStackNavigator()
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShadowVisible: false }}>
<Stack.Screen
name='LogIn'
component={LogIn}
options={{ title: 'Overview', headerShown: false }}
/>
<Stack.Screen
name='Main'
component={Main}
options={{ headerShown: false }}
/>
<Stack.Screen
name='PostDetail'
component={PostDetail}
options={{
headerBackVisible: true,
title: '게시물',
headerTitleAlign: 'center',
}}
/>
<Stack.Screen
name='PostWrite'
component={PostWrite}
options={{
headerBackVisible: true,
title: '게시물 만들기',
headerTitleAlign: 'center',
headerStyle: {
backgroundColor: '#FAFF02',
},
}}
/>
<Stack.Screen
name='PrinterReservation'
component={PrinterReservationCalendar}
options={{ headerShown: false }}
/>
<Stack.Screen
name='PrinterInfo'
component={PrinterInfo}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
</GestureHandlerRootView>
)
}