在反应本机如何在另一个内部创建抽屉

时间:2019-07-18 06:50:42

标签: reactjs react-native react-router react-navigation react-native-drawer

我想在另一个抽屉中添加一个抽屉,我使用的是“反应导航”中的createDrawerNavigator

类似这样,请参见下图:

enter image description here

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);

0 个答案:

没有答案