React Native:在tabNavigator中未定义的其他屏幕上显示tabNavigator

时间:2018-12-07 13:30:27

标签: react-native react-navigation

我也想在ScreenNotOnTabbar屏幕的底部显示TabScreen。实现此目标的最佳方法是什么?

    const AppNavigator = StackNavigator({
      ScreenNotOnTabbar: {
        screen: StackNavigator({
          AboutMe: {
            screen: AboutMe,
          },
          MyProfile: {
            screen: MyProfile,
          },
        },
        {
          navigationOptions: ({ navigation }) => ({
            ........
          })
        })
      },
      TabScreen: TabNavigator({
          Tab1: {
            screen: Tab1,
          },
          Tab2: {
            screen: Tab2,
          },
      }),
   });

0 个答案:

没有答案