-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios): load initial tab when
onSwitchToTab
mode is set.
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. It also 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 native issue there.
- Loading branch information
Showing
2 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters