-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tabbed Scene Jumping Back to first tab #2164
Comments
Could you check pure react-navigation TabNavigator first? It is possible that the problem is there because RNRF uses react-navigation internally. |
I started the project with RNRF 3.38 and it worked perfectly apart from being sluggish in debug mode. But also I've noticed that in v4 the tabs mount together where before a tab mounted on request. |
Use |
Thank you |
|
I'll give that a try when I've got a little more time on my hands. However it does look like the issue is connected to hot-loading. I'll confirm soonest. Thanks. |
Closed due inactivity. Fee free to reopen if any. |
Version
Tell us which versions you are using:
<Router createReducer={reducerCreate}> <Scene key="root"> <Scene key="t1" tabs title="Tabs"> <Scene key="t1_1" tabBarLabel="Tab 1" component={Tab1} navigationBarStyle={{height:0}}/> <Scene key="t2_2" tabBarLabel="Tab 2" component={Tab1} navigationBarStyle={{height:0}}/> <Scene key="t3_3" tabBarLabel="Tab 3" component={Tab1} navigationBarStyle={{height:0}}/> </Scene> </Scene> </Router>
Expected behaviour
Tabbed Navigation to stay on current tab.
Actual behaviour
When the scene is loaded I swipe to a new tab, and then after a few seconds it tabs back to the first tab automatically.
The time it takes to do this is also the same time it takes to change tab when you press on the tab bar to go to the next tab... which is quite a delay.
But after that time window it operates as expected
Steps to reproduce
The text was updated successfully, but these errors were encountered: