-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
27 lines (23 loc) · 793 Bytes
/
index.js
File metadata and controls
27 lines (23 loc) · 793 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
import * as React from 'react';
import {AppRegistry, StatusBar, Dimensions} from 'react-native';
import {createAppContainer} from 'react-navigation';
import {createDrawerNavigator} from 'react-navigation-drawer';
import {name as appName} from './app.json';
import colors from 'config/colors';
import Menu from 'navigations/Menu';
import MainNavigation from 'navigations/Main.js';
StatusBar.setBarStyle('light-content', true);
StatusBar.backgroundColor = colors.background;
const Navigation = createDrawerNavigator(
{
MainNavigation,
},
{
contentComponent: Menu,
drawerWidth: Dimensions.get('window').width - 50,
drawerType: 'slide',
},
);
const Main = createAppContainer(Navigation);
const Root = () => <Main />;
AppRegistry.registerComponent(appName, () => Root);