0

I'm using wix react native navigation,I can navigate to a screen using

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

But how to remove the top tab from that screen

Arjun sr
  • 161
  • 2
  • 10

2 Answers2

0

Try this in the options :

topBar: {
   visible: false,
   drawBehind: true,
   animate: false,
},
shubham
  • 257
  • 2
  • 10
0

In the component where you want to hide or show you can add this static function

export default class Screen extends Component {
  static get options() {
    return {
      topBar: {
        title: {
          text: 'Screen',
        },
        visible: false,
        drawBehind: true,
        animate: false,
      },
    };
  }
}
ketimaBU
  • 901
  • 4
  • 15
  • 35