Nothing happens. Inspector showed this would go through all the steps ok, no error was recorded.
Now if you press anywhere on the screen, the tab will switch immediately.
I realized this only happens when you run it from the debug console. If you trigger the tab switching code by performing a user action (such as clicking on a Touchable), then the tab switches ok.
On TabNavigation example
In RootNavigation, assign an id to the TabNavigation component
put this code in the HomScreen constructor
run this code in the debug console
Nothing happens. Inspector showed this would go through all the steps ok, no error was recorded. Now if you press anywhere on the screen, the tab will switch immediately.