-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
30 lines (28 loc) · 785 Bytes
/
App.js
File metadata and controls
30 lines (28 loc) · 785 Bytes
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 {StackNavigator} from 'react-navigation';
import {Root} from 'native-base';
import Home from './src/screens/Home';
import Scan from './src/screens/Scan';
import MenuContainer from './src/containers/MenuContainer';
import PayContainer from './src/containers/PayContainer';
import { DrawerNavigator } from "react-navigation";
import SideBar from './src/components/SideBar';
import { Provider } from './src/context';
const App = DrawerNavigator(
{
Home: { screen: Home },
Scan: { screen: Scan},
MenuContainer: { screen: MenuContainer },
PayContainer: { screen: PayContainer}
},
{
contentComponent: props => <SideBar {...props} />
}
);
export default () => (
<Provider>
<Root>
<App/>
</Root>
</Provider>
);