SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Emit scroll end events when fling animator completes (#52989)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52989

Adds a call to `NativeAnimatedModule`'s `userDrivenScrollEnded` method whenever a scroll event completes a smooth scroll animation. This is necessary in cases where Animated events control any layout properties of children and we need to force the shadow tree to resync with the native tree. For example, if a scroll view's child transforms its scale based on the scrollX or scrollY properties and the user triggers a `scrollToOffset` or `scrollToIndex` call, we don't update the layout of that child until the next state change.

Changelog: [Android][Fixed] - Fixed an issue where shadow tree and native tree layouts mismatch at the end of a scroll event

Reviewed By: sammy-SC

Differential Revision: D79464176

fbshipit-source-id: fee5f1c522714dbcddf8836de291c05d10e6e90e
P
Peter Abbondanzo committed
1828c53f85faf599a485b3859f8b62586696265f
Parent: ea1aff4
Committed by Facebook GitHub Bot <[email protected]> on 8/4/2025, 3:19:16 PM