Reactjs 使用选项卡导航器和抽屉导航器进行本机反应

Reactjs 使用选项卡导航器和抽屉导航器进行本机反应,reactjs,react-native,react-native-ios,react-native-navigation,Reactjs,React Native,React Native Ios,React Native Navigation,我对React native完全是新手,目前正在尝试为我的应用程序设置导航 我有一个从登录到选项卡导航器的堆栈导航。选项卡导航器有4个选项卡(HomeRoutes、ProductCatalogerOutes、MyCustomerOutes和DrawerOutes)。最后一个应在单击时打开抽屉导航器。但是,当我单击第4个选项卡时,抽屉导航的第一个屏幕显示为“我无法打开抽屉导航” 我觉得我错过了一些基本的东西,但即使在阅读了其他几个问题后,我还是不明白。如果你需要任何进一步的信息,请告诉我 注意:或

我对React native完全是新手,目前正在尝试为我的应用程序设置导航

我有一个从登录到选项卡导航器的堆栈导航。选项卡导航器有4个选项卡(HomeRoutes、ProductCatalogerOutes、MyCustomerOutes和DrawerOutes)。最后一个应在单击时打开抽屉导航器。但是,当我单击第4个选项卡时,抽屉导航的第一个屏幕显示为“我无法打开抽屉导航”

我觉得我错过了一些基本的东西,但即使在阅读了其他几个问题后,我还是不明白。如果你需要任何进一步的信息,请告诉我

注意:或者,将抽屉导航置于选项卡导航器的左侧标题位置也可以

注2:我还将DroperNavigation更改为CreateDroperNavigation等

谢谢你的帮助

import React, { Component } from 'react';
import {StyleSheet, Text, View} from 'react-native';


import {DrawerNavigator, StackNavigator, TabNavigator} from 'react-navigation'
import Icon from 'react-native-vector-icons/FontAwesome';

import MyCustomers from "./mycustomers";
import ProductCatalogue from "./productcatalogue";

import Login from "./login";
import Home from "./home";

import Plain from "./plain";


const ProductCatalogueRoutes = StackNavigator({
    ProductCatalogue: { screen: ProductCatalogue },
})

const MyCustomerRoutes = StackNavigator({
    MyCustomers: { screen: MyCustomers },
})

const DrawerRoutes = DrawerNavigator({
    Plain: { screen: Plain},
    MyCustomers: {screen: MyCustomerRoutes},
    ProductCatalogue: {screen:ProductCatalogueRoutes},  
})

const HomeRoutes = StackNavigator({
    Home: { screen: Home },
    // DrawerRoutes: { screen: DrawerRoutes}, //if the drawer menu is part of the header
})

const Tabs = TabNavigator({
    Home: { screen: HomeRoutes },
    MyCustomers: {screen: MyCustomerRoutes},
    ProductCatalogue: {screen: ProductCatalogueRoutes},
    Menu: {screen: DrawerRoutes}
    },
    {order: [ 'Home', 'ProductCatalogue', 'MyCustomers' , 'Menu'],
     animationEnabled:true,
    }
);


export const Stack = StackNavigator({
        Login: {screen: Login},
        TabNavigation: {screen: Tabs}
    },
    {initialRouteName: 'Login',
        header: null,
        navigationOptions: {
            headerVisible: false,
            header: null,
        },
    });


const styles = StyleSheet.create({
    title: {
        color: '#ff5d00',
        fontSize: 15,
        textAlign: 'center',
        marginTop: 2,
        opacity: 0.9,
    }
});