Files
react-native/Libraries
Andrei Shikov 382e90c0dd Batch Animation setValue call in a separate batch
Summary:
NativeAnimationModule on Android is using batches to combine related updates together. In Fabric, this process is controlled by JS, which schedules starts batching when Animated component props are about to be updated.

In rare cases when there's no prop update (like calls to `setValue` on `AnimatedValue`), changes weren't applied until the next batch was scheduled. This change ensures that such changes get applied directly.

This problem doesn't happen on iOS or non-Fabric surfaces, because they use per-frame scheduling instead.

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D28100641

fbshipit-source-id: 87b3acb3a8de131cdcb2104dc121d40eccfbc29d
2021-04-30 10:21:36 -07:00
..
2020-10-18 20:30:55 -07:00
2021-04-28 20:16:23 -07:00
2021-03-22 06:46:00 -07:00
2021-04-29 20:39:28 -07:00
2021-04-26 22:57:55 -07:00
2021-04-26 22:57:55 -07:00
2020-02-21 10:34:40 -08:00
2021-04-15 13:27:38 -07:00