Skip to content

popTo initial scene visibly shows scenes in between as well #1799

Closed
@pratomchaip

Description

@pratomchaip

Version

Tell us which versions you are using:

  • react-native-router-flux v3.38.0
  • react-native v0.40.0

Expected behaviour

I have (Initial) SceneA, SceneB and SceneC
When at SceneC and I use Action.popTo('SceneA'), SceneA should slide in from the left and push SceneC out to the right.

Actual behaviour

When at SceneC and I use Action.popTo('SceneA'), SceneA slides in from the Left and pushes SceneC out to the right as expected...
... but I can see SceneB sliding from left to right, in between SceneA and SceneC, as well.

Steps to reproduce

  1. SceneA
  2. push to SceneB
  3. push to SceneC
  4. At SceneC, Actions.popTo('SceneA')
  5. SceneA pops in from the Left but SceneB also visibly animates from left to right as well.

Is this normal behaviour or is it a bug?

If it is normal behaviour, can anyone tell me how do I popTo the initial SceneA without the intermediate scenes (i.e. SceneB) showing as well, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions