forked from awesome-reactivesearch/native-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
27 lines (24 loc) · 638 Bytes
/
App.js
File metadata and controls
27 lines (24 loc) · 638 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 React from 'react';
import { DrawerNavigator } from 'react-navigation';
import DefaultScreen from './src/components/DefaultScreen';
import MainDrawer from './src/drawers/MainDrawer';
import screenMapping from './src/screenMapping';
// RootDrawer containing drawers for each components
const RootDrawer = DrawerNavigator(
{
Home: {
screen: DefaultScreen,
},
// Register screens of all options of child components
...screenMapping,
},
{
// Custom rendering component of drawer panel
contentComponent: MainDrawer,
}
);
export default class App extends React.Component {
render() {
return <RootDrawer />;
}
}