-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavigation.js
More file actions
54 lines (51 loc) · 2.42 KB
/
Navigation.js
File metadata and controls
54 lines (51 loc) · 2.42 KB
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
// Navigation.js
import React from 'react';
import { StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator, CardStyleInterpolators } from '@react-navigation/stack';
import MainMenu from './pages/MainMenu';
import SelectResourceLocation from './pages/SelectResourceLocation';
import MealOrGroceries from './pages/MealOrGroceries';
import FindHealthcare from './pages/FindHealthcare';
import LunchOrDinner from './pages/LunchOrDinner';
import ResourceLocation from './pages/ResourceLocation';
import SelectTransportation from './pages/SelectTransportation';
import ResourceLocationsList from './pages/ResourceLocationsList';
import MoreInfo from './pages/MoreInfo';
import RequestPermission from './pages/RequestPermission';
import ProminentDisclosure from './pages/ProminentDisclosure';
import ImportantNotice from './pages/ImportantNotice';
import AllLocationsClosed from './pages/AllLocationsClosed';
const Stack = createStackNavigator();
const Navigation = () => (
<NavigationContainer>
<StatusBar
backgroundColor="#fafafa"
barStyle="dark-content"
// color="#000"
/>
<Stack.Navigator
initialRouteName="MainMenu"
screenOptions={{
headerShown: false,
// Customizing the screen transition animation
cardStyleInterpolator: CardStyleInterpolators.forHorizontalIOS,
}}
>
<Stack.Screen name="MainMenu" component={MainMenu} />
<Stack.Screen name="SelectResourceLocation" component={SelectResourceLocation} />
<Stack.Screen name="MealOrGroceries" component={MealOrGroceries} />
<Stack.Screen name="FindHealthcare" component={FindHealthcare} />
<Stack.Screen name="LunchOrDinner" component={LunchOrDinner} />
<Stack.Screen name="ResourceLocation" component={ResourceLocation} />
<Stack.Screen name="SelectTransportation" component={SelectTransportation} />
<Stack.Screen name="ResourceLocationsList" component={ResourceLocationsList} />
<Stack.Screen name="MoreInfo" component={MoreInfo} />
<Stack.Screen name="RequestPermission" component={RequestPermission} />
<Stack.Screen name="ProminentDisclosure" component={ProminentDisclosure} />
<Stack.Screen name="ImportantNotice" component={ImportantNotice} />
<Stack.Screen name="AllLocationsClosed" component={AllLocationsClosed} />
</Stack.Navigator>
</NavigationContainer>
);
export default Navigation;