我希望createMaterialTopTabNavigator应该被隐藏,如何做到这一点
const TopTabNavigation = createMaterialTopTabNavigator({
one:LogedInChatBot,
two:ScreenTwo,
three:ScreenThree
},{
tabBarOptions:{
}
}
)
您可以做:
tabBarOptions: {
style: {
display: 'none'
}
}
来源:https://github.com/react-navigation/react-navigation/issues/5428#issuecomment-517112669-permalink
希望他们会像在tabBarVisible
中一样添加一个createBottomTabNavigator
道具