-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavigation.js
54 lines (52 loc) · 1.03 KB
/
navigation.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
import {createStackNavigator} from "react-navigation";
import SplashPage from './pages/splash';
import LoginPage from './pages/login';
import SignUpPage from './pages/signup';
import QuizPage from './pages/quiz';
import HomePage from './pages/home';
import MapPage from './pages/map';
const navigator = createStackNavigator({
Init: {
screen: createStackNavigator({
Splash: {
screen: SplashPage
},
Login: {
screen: LoginPage
},
SignUp: {
screen: SignUpPage
},
Quiz: {
screen: QuizPage
}
},
{
headerMode: 'none',
navigationOptions: {
headerVisible: false,
}
})
},
Main: {
screen: createStackNavigator({
Home: {
screen: HomePage
},
Map: {
screen: MapPage
}
},
{
headerMode: 'none',
navigationOptions: {
headerVisible: false,
}})
}
}, {
headerMode: 'none',
navigationOptions: {
headerVisible: false,
}
});
export default navigator;