Commit df43cc7
Fix animation in fast navigation between scenes
Summary:
There is a bug in navigation animation:

navigation animation from route-2 was awful, route-3 scene appeared without any animation, I pushed above example to https://github.com/gitim/react-native/commit/46dd8c93b491893f1707c3db80ca39b9ac9ba59a.
This bug can be reproduced when user navigates to the next scene immediately after navigation to the current one or when navigating between scenes programmatically (e.g. between loading scene and whatever next scene). I made some investigation and It looks like that `progress` should be reseted before building the new _transitionProps.
The above example after applying this patch:

Closes #10761
Differential Revision: D4226864
Pulled By: mkonicek
fbshipit-source-id: 31dceb6c8e497b2cbd891bbda4cb3add01cbcca01 parent 2121527 commit df43cc7
1 file changed
Lines changed: 5 additions & 5 deletions
File tree
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | | - | |
155 | | - | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments