-
Notifications
You must be signed in to change notification settings - Fork 44
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
Switching tab re-mounts the component within RN 0.24 #69
Comments
This is likely a dupe of #61. 🤔 Update— I believe @hedgerwang is working on this. Does this fix your issue? facebook/react-native#81c62c5f |
We're facing this problems as well. |
@ptomasroos Are you losing component state when you set If you can tell me how to reproduce the issue you're having, I might be able to help. 🍺 |
I think it's more the issue that I've been successfully using |
@jmurzy images gets removed and causes redownloading of images on switching tabs. Very noticeable. Instead vs being on a stack and going back one scene where the underlying Card is displayed already rendered. Another thing how this is noticed is that scroll position of a list view is 'forgotten' between switching tabs because its unmounted. Hence I would like to avoid the unmounting :) |
That is correct. @hedgerwang killed the old examples in UIExplorer. Here's a newer example he recently pushed that uses @ptomasroos What React Native version are you using? NavigationExperimental is a moving target and I recommend you upgrade to v0.28.0-rc.0 and see if that helps. You should not be losing component state i.e scroll position. These issues were addressed in #61. 🍺 |
Thanks for your efforts for explaining and responding! I will upgrade! |
@hedgerwang created a great example how to keep Scene's mounted with tab bar items today. For me this can be closed. |
Again, it worked well within RN 0.22, any changes within navigationState internal structure?
aksonov/react-native-router-flux#549
The text was updated successfully, but these errors were encountered: