-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
68 lines (63 loc) · 2.02 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
63
64
65
66
67
68
import React, { useEffect } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import SplashScreen from 'react-native-splash-screen';
import MainScreen from './src/MainScreen';
import LoginScreen from './src/LoginScreen'
import ReservationScreen from './src/ReservationScreen';
import CommunityScreen from './src/CommunityScreen';
import FacilityManageScreen from './src/admin/FacilityManageScreen';
import FacilityCreateUpdateScreen from './src/admin/FacilityCreateUpdateScreen';
import CommunityManageScreen from './src/admin/CommunityManageScreen';
import ReservationManageScreen from './src/admin/ReservationManageScreen';
import ReservationInfoScreen from './src/admin/ReservationInfoScreen';
const Stack = createNativeStackNavigator();
const App = () => {
useEffect(() => {
SplashScreen.hide()
}, [])
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="메인"
component={MainScreen}
/>
<Stack.Screen
name="로그인"
component={LoginScreen}
/>
<Stack.Screen
name="예약하기"
component={ReservationScreen}
/>
<Stack.Screen
name="커뮤니티"
component={CommunityScreen}
/>
{/*********** for admin ***********/}
<Stack.Screen
name="예약 관리"
component={ReservationManageScreen}
/>
<Stack.Screen
name="예약 정보 확인"
component={ReservationInfoScreen}
/>
<Stack.Screen
name="시설물 관리"
component={FacilityManageScreen}
/>
<Stack.Screen
name="시설물 추가"
component={FacilityCreateUpdateScreen}
/>
<Stack.Screen
name="커뮤니티 관리"
component={CommunityManageScreen}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;