React-native-navigation: [v2] react-native-navigation waits until whole screen loads before navigate?

Created on 13 Feb 2019  ·  3Comments  ·  Source: wix/react-native-navigation

Issue Description

I hear somewhere here that when we navigate to screen RNN will wait until every element loads and only then visually navigates to this screen? And because of this we have this pause between our touch and navigation animation?
And solution was to hide screen elements conditionally and show them in timeout so RNN will show screen faster?

Steps to Reproduce / Code Snippets / Screenshots


Environment

  • React Native Navigation version: 0.57.8
  • React Native version: 2.11
  • Platform(s) (iOS, Android, or both?): both
  • Device info (Simulator/Device? OS version? Debug/Release?):Device/Simulator

Most helpful comment

@rendomnet There is a property that enables you to ignore this behavior, look for waitForRender in documentation.

All 3 comments

@rendomnet There is a property that enables you to ignore this behavior, look for waitForRender in documentation.

@hadimostafapour I did not found it in official documentation.
So by default it is NOT waits? And if I don't want pause between pushing I do not need to set anything

By default it does not wait. You can use the waitForRender option if you do want to wait for it to render.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swingywc picture swingywc  ·  3Comments

yayanartha picture yayanartha  ·  3Comments

henrikra picture henrikra  ·  3Comments

birkir picture birkir  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments