react-native
react-native copied to clipboard
Set up experiment to fix incorrect state updates in smooth scroll animations on Android
Summary: 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.
Differential Revision: D59233069
This pull request was exported from Phabricator. Differential Revision: D59233069
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| android | hermes | arm64-v8a | 20,300,842 | +272 |
| android | hermes | armeabi-v7a | n/a | -- |
| android | hermes | x86 | n/a | -- |
| android | hermes | x86_64 | n/a | -- |
| android | jsc | arm64-v8a | 23,497,431 | +70 |
| android | jsc | armeabi-v7a | n/a | -- |
| android | jsc | x86 | n/a | -- |
| android | jsc | x86_64 | n/a | -- |
Base commit: ffd0b39755af3c096df5329a367d5a708a015a48 Branch: main
This pull request was exported from Phabricator. Differential Revision: D59233069
This pull request has been merged in facebook/react-native@e35a2f4a7c58905f1d2b60720b91cc1daa8c0194.