0

I'm using react-native-navigation(wix) and I have 4 root tabs in my app. I'd like to navigate back to my previous tabs when I go from one tab to another.

1 Answers1

1

This is Cherniv's answer. But basically what' he's saying is that every tab has an index. From 0 to N.

So by doing this will achieve it.

this.props.navigator.switchToTab({ 
    tabIndex: desiredIndex 
});

In the meantime, Kudos to him for helping me aswell. Thanks @Cherniv.

msqar
  • 2,940
  • 5
  • 44
  • 90