-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
38 lines (33 loc) · 799 Bytes
/
index.js
File metadata and controls
38 lines (33 loc) · 799 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
31
32
33
34
35
36
37
38
import { AppRegistry } from 'react-native';
import App from './App';
import HomeScreen from './src/components/HomeScreen';
import DetailScreen from './src/components/DetailScreen';
import {
StackNavigator,
DrawerNavigator
} from 'react-navigation';
import DrawerMenu from './src/components/containers/DrawerMenu';
const stackNavigator = StackNavigator({
Home: { screen: HomeScreen },
Detail: { screen: DetailScreen },
}, {
headerMode: 'none'
});
const easyRNRoute = DrawerNavigator({
Home: {
screen: HomeScreen,
},
Stack: {
screen: stackNavigator
}
}, {
contentComponent: DrawerMenu,
contentOptions: {
activeTintColor: '#e91e63',
style: {
flex: 1,
paddingTop: 15,
}
}
});
AppRegistry.registerComponent('MyNewProject', () => easyRNRoute);