react-native - 如何在 React-native 中从顶部隐藏 createMaterialTopTabNavigator?
问题描述
我想隐藏 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
推荐阅读
- artificial-intelligence - Watson Assistant - Intents 中的实体引用 - 我需要了解我缺少什么
- azure - Azure devops - 发布通用包时出现 302 状态码
- kubernetes - 在 Kubernetes 中将 Deployment 转换为 StatefulSet
- c# - 递归方法调用
- sql - 如何按自定义条件显示每个用户的最新日期范围和过滤周期
- javascript - 模块解析失败:意外令牌 - 您可能需要适当的加载程序来处理此文件类型
- asp.net-core - 控制器不更新 Razor 视图模型:如何将值传递给视图
- android - Kodein 返回一个新实例而不是单例
- shell - 将ansible输出格式化为csv
- java - Firebase 推送通知中的自定义声音