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

Type replace not removing transition animation #2766

Closed
munkhorgil opened this issue Jan 7, 2018 · 1 comment
Closed

Type replace not removing transition animation #2766

munkhorgil opened this issue Jan 7, 2018 · 1 comment

Comments

@munkhorgil
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0 (v3 is not supported)
  • react-native v0.16.0

Expected behaviour

Change scene without transition animation

Actual behaviour

Scene with type="replace" not removing transition animation

Main is initial component that decides user is logged in or not. When user is logged in it navigates to A tabbar with transition. Even I put type="replace" still shows transition animation.

<Router>
    <Scene key="root">
        <Scene key="main" inital type="replace"/>
        <Scene key="login"/>
        <Scene key="tabbar">
            <Scene key="a"/>
            </Scene key="b"/>
        </Scene>
    </Scene>
</Router>
@Blapi
Copy link
Collaborator

Blapi commented Jan 10, 2018

The "replace" type will not affect the transition, it will affect your navigation stack.

If you want to fix your transition issue, please have a look at #2628, I still have to do a PR for this but I'm too busy with my own work..

@Blapi Blapi closed this as completed Jan 10, 2018
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