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

Transition between scene with navbar and transparent navbar #2301

Closed
dgruseck opened this issue Aug 29, 2017 · 1 comment
Closed

Transition between scene with navbar and transparent navbar #2301

dgruseck opened this issue Aug 29, 2017 · 1 comment

Comments

@dgruseck
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.21
  • react-native v0.47.2

Expected behaviour

A smooth transition where the first screen is not modified.

Actual behaviour

When you switch from a screen with a navbar and one with a transparent (navTransparent={true}) the first screen is also changing to a transparent navbar and the content is moving up.
If you have a page with a lot of content that looks really laggy.

You can check the Example App. If you go from Login2 to Login3 the content of Login2 is moving and the navbar is transparent.

Do you have any solution for that or is it a issue of react navigation?
Thank you

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

  1. Go to Login2
  2. Go to Login3
  3. Watch Login2 during the transition
@aksonov
Copy link
Owner

aksonov commented Sep 2, 2017

You need to use headerMode='screen' for different animation.

@aksonov aksonov closed this as completed Sep 2, 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