如何在React Native中从屏幕上删除顶部标签?

时间:2018-12-10 07:38:38

标签: react-native wix-react-native-navigation

我正在使用wix react本机导航,我可以使用导航到屏幕

Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
  children: [{
    component: {
      name: 'myproject.AuthScreen',
      passProps: {
        text: 'stack with one child'
      }
    }
  }],
  options: {
    topBar: {
      title: {
        text: 'Welcome screen'
      }
    }
  }
}
}
})
});

但是如何从该屏幕上删除顶部标签

2 个答案:

答案 0 :(得分:0)

在选项中尝试:

topBar: {
   visible: false,
   drawBehind: true,
   animate: false,
},

答案 1 :(得分:0)

在要隐藏或显示的组件中,可以添加此静态函数

V.bounds.size.height