How to hide React Native NavigationBar

后端 未结 11 1763
情书的邮戳
情书的邮戳 2020-12-30 02:25

I have NavigatorIOS under Navigator and would like to hide Navigator\'s NavigationBar to use NavigatorIOS\'s bar. Is there any way to do this?

This is screenshot tha

11条回答
  •  星月不相逢
    2020-12-30 02:40

    pass this property along with navigator.push or initialRoute by setting it as true

    navigationBarHidden?: PropTypes.bool

    Boolean value that indicates whether the navigation bar is hidden by default.

    eg:

    
    

    or

    this.props.navigator.replace({
            title: 'ProviderList',
            component: ProviderList,
            passProps: {text: "hai"},``
            navigationBarHidden: true,
      });
    

提交回复
热议问题