[英]How can the pushing view cover the tabbar in wix/react-native-navigation for react native
How can I cover the tab bar by pushing a new view in Wix/react-native-navigation for react native?如何通过在Wix/react-native-navigation 中为 React Native 推送新视图来覆盖标签栏?
I can push new views with the API but I can't find any method that is able to push with covering the tab bar.我可以使用 API 推送新视图,但找不到任何能够通过覆盖标签栏推送的方法。
In the new screen you are pushing, add tabBarHidden: true
to the navigatorStyle
.在您推送的新屏幕中,将tabBarHidden: true
添加到navigatorStyle
。
class NextScreen extends Component {
static navigatorStyle = {
tabBarHidden: true,
drawUnderTabBar: true // Since we want to render the screen instead of the tabBar
};
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.