-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
55 lines (38 loc) · 1.37 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
import React, {Component} from 'react'
import { StackNavigator, NavigationActions } from 'react-navigation'
import {AsyncStorage,ToastAndroid,Alert} from 'react-native';
import LoginScreen from './screens/Login'
import MapScreen from './screens/MapScreen'
import HomeScreen from './screens/HomeScreen'
import ProfileScreen from './screens/ProfileScreen'
import AlertsScreen from './screens/AlertsScreen'
import MakeAlertsScreen from './screens/MakeAlertsScreen'
import LoadingScreen from './screens/LoadingScreen'
import SignupScreen from './screens/SignupScreen'
import UserContactScreen from './screens/UserContactScreen'
import SpeedScreen from './screens/SpeedScreen'
import Functions from './functions/Functions'
import ServerConnection from './services/ServerConnection'
const StackApp = StackNavigator({
Map: { screen: MapScreen },
Home: { screen: HomeScreen },
Login: { screen: LoginScreen },
Settings: { screen: ProfileScreen },
Loading: {screen : LoadingScreen},
Alerts : {screen : AlertsScreen},
MakeAlerts : {screen : MakeAlertsScreen},
Signup :{screen : SignupScreen},
UserContact :{screen : UserContactScreen},
Speed : {screen : SpeedScreen}
},
{
headerMode : 'none',
initialRouteName : 'Loading'
})
export default class App extends Component {
render() {
return (
<StackApp ref={nav => { this.navigator = nav; }} />
);
}
}