Skip to content
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

Lazy prop mount other pages which are not selected #2211

Closed
jordenchang55 opened this issue Aug 10, 2017 · 2 comments
Closed

Lazy prop mount other pages which are not selected #2211

jordenchang55 opened this issue Aug 10, 2017 · 2 comments

Comments

@jordenchang55
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.17
  • react-native v0.46.4

Expected behaviour

lazy prop should mount only the tab I selected.

Actual behaviour

On android, it mount first tab only at initial state, but when I click other tab, it will mount all tabs between first one and the one I clicked. For example, I click third tab, it will mount second tab as well.
It works as expected on iOS.

@aksonov
Copy link
Owner

aksonov commented Aug 10, 2017

RNRF is a wrapper around react-navigation. Please check pure react-navigation TabNavigator demos with lazy enabled: https://github.com/react-community/react-navigation/blob/master/docs/api/navigators/TabNavigator.md

@aksonov
Copy link
Owner

aksonov commented Aug 14, 2017

Closed due inactivity.

@aksonov aksonov closed this as completed Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants