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

Add lazy option for createBottomTabNavigator #7409

Closed
brentvatne opened this issue May 23, 2018 · 6 comments
Closed

Add lazy option for createBottomTabNavigator #7409

brentvatne opened this issue May 23, 2018 · 6 comments

Comments

@brentvatne
Copy link
Member

We should support disabling "lazy" if people want to. See: #4254

@karanmartian
Copy link

now that the commit is made, will the lazy option be available with a new release?

@djendacott
Copy link

Any update on this? Lazy being forced to true is making tab navigation too slow.

@satya164
Copy link
Member

satya164 commented Jun 4, 2018

Any update on this? Lazy being forced to true is making tab navigation too slow.

It's already released. Also lazy should make it fast since only 1 tab is rendered on startup, not slow. You're probably seeing this, which is a separate issue: #4412

@djendacott
Copy link

djendacott commented Jun 4, 2018

@satya164 Are you certain disabling lazy is possible? I believe createBottomTabNavigator does not allow the option to set lazy to false (preload all tabs).

Our issue is navigating between tabs without preloading is slow because our tab content is quite heavy, I'm currently seeing no solution but to remain with the deprecated tabNavigator purely so we can disable lazy.

EDIT: On further digging I see this change has been implemented, but just hasn't been released yet. Hoping it will be out soon. Thanks!

@Bobby-Lux
Copy link

Has this change been released yet? I don't see anything in the documentation about being able to set lazy to false with createBottomTabNavigator. I'd like to be able to update from TabNavigator to createBottomTabNavigator, but need to disable lazy loading.

@brentvatne
Copy link
Member Author

It has been released, docs need to be updated

@satya164 satya164 transferred this issue from react-navigation/tabs Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants