Commit 2b992a0
Flush created animated nodes before handling events (#57656)
Summary:
Pull Request resolved: #57656
Changelog: [Internal]
View event handlers can run synchronously before NativeAnimated nodes created on the async path have been flushed into the active graph. Flush pending async-created nodes on the render thread before evaluating view-driven animation events, so focus-driven animations can resolve their value nodes on the first native focus event instead of needing another runloop/event.
Reviewed By: zeyap
Differential Revision: D111257551
fbshipit-source-id: d5b7322cfce90b820ccf06422f1c830255bea3b31 parent 72432a2 commit 2b992a0
10 files changed
Lines changed: 11 additions & 2 deletions
File tree
- packages/react-native/ReactCommon/react/renderer/animated
- scripts/cxx-api/api-snapshots
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | | - | |
219 | | - | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3523 | 3523 | | |
3524 | 3524 | | |
3525 | 3525 | | |
| 3526 | + | |
3526 | 3527 | | |
3527 | 3528 | | |
3528 | 3529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3407 | 3407 | | |
3408 | 3408 | | |
3409 | 3409 | | |
| 3410 | + | |
3410 | 3411 | | |
3411 | 3412 | | |
3412 | 3413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3520 | 3520 | | |
3521 | 3521 | | |
3522 | 3522 | | |
| 3523 | + | |
3523 | 3524 | | |
3524 | 3525 | | |
3525 | 3526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5756 | 5756 | | |
5757 | 5757 | | |
5758 | 5758 | | |
| 5759 | + | |
5759 | 5760 | | |
5760 | 5761 | | |
5761 | 5762 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5668 | 5668 | | |
5669 | 5669 | | |
5670 | 5670 | | |
| 5671 | + | |
5671 | 5672 | | |
5672 | 5673 | | |
5673 | 5674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5753 | 5753 | | |
5754 | 5754 | | |
5755 | 5755 | | |
| 5756 | + | |
5756 | 5757 | | |
5757 | 5758 | | |
5758 | 5759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
| 2368 | + | |
2368 | 2369 | | |
2369 | 2370 | | |
2370 | 2371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2289 | 2289 | | |
2290 | 2290 | | |
2291 | 2291 | | |
| 2292 | + | |
2292 | 2293 | | |
2293 | 2294 | | |
2294 | 2295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2362 | 2362 | | |
2363 | 2363 | | |
2364 | 2364 | | |
| 2365 | + | |
2365 | 2366 | | |
2366 | 2367 | | |
2367 | 2368 | | |
| |||
0 commit comments