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

Tab navigation mounting any screens with a large delay #3154

Closed
SourceCipher opened this issue Aug 2, 2018 · 3 comments
Closed

Tab navigation mounting any screens with a large delay #3154

SourceCipher opened this issue Aug 2, 2018 · 3 comments

Comments

@SourceCipher
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux: ^4.0.0-beta.31
  • react-native: 0.55.4
  • Developing for android only for now

Expected behaviour

Scenes should be mounted instantly once the scene is set fully to the view

Actual behaviour

It has 1-2s delay before the screen is mounted. Have in mind I am talking about the production app so no debugging issues here. Both screens have very minimal code. In fact, there is no logic in them at all. Just to show text with some styling for now.

My router for the tabs looks like this:

 <Tabs key="tabbar" showLabel={false} tabs={false} hideNavBar style={{ marginTop: -50 }} type={ActionConst.RESET}>
                    <Scene key="contacts" component={Contacts} hideNavBar type={ActionConst.RESET}/>
                    <Scene key="chats" component={Chats} hideNavBar initial={true} type={ActionConst.RESET}/>
                    <Scene key="profile" component={Profile} hideNavBar type={ActionConst.RESET}/>
                </Tabs>

Is that the actual behavior of this library? If not can I somehow mount them all at once on the app load as I would like to show at least the styling of the screen before applying with the data once the data is loaded, but I cant do that as it gets mounted with this long delay (yes, 2 seconds is a century here)

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please check latest version based on react navigation 2.x

@SourceCipher
Copy link
Author

@aksonov I switched the app navigator to the React Navigation, but I will test on my backed up app to see if there are any differences in speed at all

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Thank you, closing it

@aksonov aksonov closed this as completed Aug 8, 2018
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

2 participants