mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45237 Changelog: [internal] This creates a feature flag to test a fix for an incorrect state update dispatched to Fabric when using smooth scroll animations. Specifically, when starting a smooth scroll animation from X to Y, the scroll view would set the state to Y, and then all the range from X to Y again. For example, the sequence of state updates when smooth scrolling from 0 to 5 would be `0 -> 5 -> 1 -> 2 -> 3 -> 4 -> 5`, which is obviously incorrect. This flag prevents setting the final value before it's actually reached. Reviewed By: javache Differential Revision: D59233069 fbshipit-source-id: 221602d7d30635070e7776ce756e2ef438edf638