-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
41 lines (36 loc) · 941 Bytes
/
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {createStackNavigator,createAppContainer} from 'react-navigation';
import Splash from './src/components/Splash';
import Login from './src/components/Login';
import Register from './src/components/Register';
import Dashboard from './src/components/Dashboard';
import Users from './src/components/Users';
import Vehicles from './src/components/Vehicles';
import Home from './src/components/Home';
export default class App extends Component {
render() {
return (
<AppContainer/>
);
}
}
const AppStackNavigator = createStackNavigator({
Splash : Splash,
Login : Login,
Register : Register,
Dashboard : Dashboard,
Users : Users,
Vehicles : Vehicles,
Home : Home,
},
{
initialRouteName: 'Splash',
})
const AppContainer = createAppContainer(AppStackNavigator);