mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
382e90c0dd
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