aksonov / aksonov/react-native-router-flux
How to clear the stack except the bottom-most scene and then push (with animation)?
- 主要言語
- JavaScript
- スター
- 8.9k
- フォーク
- 2.1k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### Version
Tell us which versions you are using:
- react-native-router-flux v4.0.5
- react v16.3.1
- react-native v0.55.4
### Question
Suppose I have a group of scenes A, B, C, D under the root scene, scene A is initial.
The current navigation stack is A -> B -> C.
I wish to show scene D with a push animation, but at the same time silently reset the whole stack except the initial scene A, so that the stack becomes A -> D.
What I tried:
1. A sequence of `Actions.popTo('A')` and `Actions.push('D')` - looks weird, like a card deck going off the table, also the pop and push animations are sometimes mixed.
2. A sequence of `Actions.reset('A')` and `Actions.push('D')` - no animation at all. Even though push is animated when called on its own.
I just want to see a push transition into scene D, but at the same time to silently get rid of A+B in the stack.
Is this even possible?
コントリビューションガイド
評価
この issue はまだ評価されていません。