(
<DrawerLayoutAndroid
drawerWidth={300}
drawerPosition={DrawerLayoutAndroid.positions.Left}
renderNavigationView={()=> (<DrawerNav />)}
onDrawerClose={function(){
// ???????
}}
>
<MainView />
</DrawerLayoutAndroid>
)
(
<DrawerLayoutAndroid
drawerWidth={300}
drawerPosition={DrawerLayoutAndroid.positions.Left}
renderNavigationView={()=> (<DrawerNav open={this.state.navOpen} />)}
onDrawerClose={() => this.setState({navOpen: true})}
>
<MainView />
</DrawerLayoutAndroid>
)