我想在另一个抽屉中添加一个抽屉,我使用的是“反应导航”中的createDrawerNavigator
。
类似这样,请参见下图:
export default class App extends Component {
render() {
return <AppContainer/>;
}
}
const AppDrawerNavigator = createDrawerNavigator({
Login: {
screen: Login,
navigationOptions: {
drawerLabel: () => null
}
},
Home: Home,
ManageChild: edit_list,
Profile: Home,
MapForAll: maps,
History: Home,
Logout: Login
});
const AppStackNavigator = createStackNavigator({
Login: {screen: AppDrawerNavigator}
}, {
headerMode: 'none',
navigationOptions: {
headerVisible: false
}
});
const AppContainer = createAppContainer(AppStackNavigator);