How can I make navigation between scenes inside same tabbar in react-native?

303 views Asked by At

I`m using Navigator in a ios react-native app, and I have a Tabbar. But one of the tabs has a view that might navigate to anothe view inside the same tab. How can I do this?

I`ve tried to render 2 tabbar:

if(this.props.route.name === 'visualizarEstabelecimento') {
    return(<MainEstabelecimentoView navigator={this.props.navigator} route={this.props.route}/>);         
  }
  else {
    return(<MainPrincipalView navigator={this.props.navigator} route={this.props.route}/>);
  }

but the tabbar is rendered with the transition of the view...

1

There are 1 answers

2
Jagadish Upadhyay On

For this you can use react-native-scrollable-tab-view. It is purely written in JavaScript. I am using it in my Android app.