-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRouter.js
45 lines (42 loc) · 950 Bytes
/
Router.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
import React from 'react';
import {StackNavigator} from 'react-navigation';
import InputScreen from './InputPage';
import HomeScreen from './Home';
import DetailsScreen from './Details';
import MyEventsScreen from './MyEvents';
import EditScreen from './EditPage';
import MapScreen from './Map';
import CreateAccountScreen from './CreateAccount';
import LoginScreen from './Login';
import Tab from './Tab';
export const Navigator = StackNavigator({
Tab: {
screen: Tab,
navigationOptions: {
header: null
}
},
LogOut: {
screen: LoginScreen,
navigationOptions: {
header: null
}
}
});
export const LoginNav = StackNavigator({
Login: { screen: LoginScreen,
navigationOptions: {
header: null,
},
},
CreateAccount: { screen: CreateAccountScreen,
navigationOptions: {
header: null,
}
},
Home: { screen: Navigator,
navigationOptions: {
header: null,
}
}
});