wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

fix(ios): load initial tab when `onSwitchToTab` mode is set. #7924

Closed asafkorem closed 1 month ago

asafkorem commented 1 month ago

Setting the initial tab index before the initialization doesn't work, since it resets to the default value (0) after initializing the tab bar controller.

Also, it seems that it loads the default child from index 0 regardless of setting it a default. I tried to workaround this from different steps in the lifecycle of the controller but looks like there's a deeper problem here. need to investigate.