我有1个stackNavigator(appStack(10个屏幕),1个登录页面(loginScreen)和1个BottomTabNavigator(MainTabs(3个屏幕))
我想在所有屏幕上显示我的BottomTabNavigator(appStack + Maintabs) 所以我想在除登录屏幕之外的所有屏幕上显示带有3个按钮的底部栏
但是目前,经过很多尝试,我只能在MainTabs上显示底部导航器
有什么主意吗? 谢谢
const appStack = createStackNavigator({
TaskAndNotifScreen: {
screen: TaskAndNotifScreen,
navigationOptions: {
header: () => null
}
},
ProfilScreen: {
screen: ProfilScreen,
navigationOptions: {
visible: false,
header: () => null
}
},
ProfilApplicantScreen: {
screen: ProfilApplicantScreen,
navigationOptions: {
visible: false,
header: () => null
}
},
SpecificVacancyScreen: {
screen: SpecificVacancyScreen,
navigationOptions: {
visible: false,
header: () => null
}
},
CvthequeScreen: {
screen: CvthequeScreen,
navigationOptions: {
visible: false,
header: () => null
}
},
OffreColumnScreen: {
screen: OffreColumnScreen,
navigationOptions: {
visible: false,
header: () => null
}
},
})
const MainTabs = createBottomTabNavigator({
OffreScreen: {
screen: OffreScreen,
navigationOptions: {
header: () => null
}
},
ProfilScreen: {
screen: ProfilScreen,
navigationOptions: {
header: () => null
}
},
CvthequeScreen: {
screen: CvthequeScreen,
navigationOptions: {
header: () => null
}
},
});
const App = createSwitchNavigator({
login :{
screen : HomeScreen
},
appstack: {
screen: appStack,
},
App: {
screen: MainTabs,
},
});
const Router = createAppContainer(App);