-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (26 loc) · 802 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
import React from 'react';
import { createAppContainer } from 'react-navigation';
import{createStackNavigator} from 'react-navigation-stack';
import HomeScreen from './src/HomeScreen';
import Setting from './src/Setting';
import Login from './src/Login';
import UserDashboard from './src/UserDashboard';
import AdminDashboard from './src/AdminDashboard';
const RootStack = createStackNavigator(
{
Home: HomeScreen,
Setting: Setting,
Login:Login,
UserDashboard:UserDashboard,
AdminDashboard:AdminDashboard,
},
{
initialRouteName: 'AdminDashboard',
}
);
const AppContainer = createAppContainer(RootStack);
export default class App extends React.Component {
render() {
return <AppContainer />;
}
}