You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems the behavior isn't consistent between android and ios.
on android it works when you flick and release, it also works when you scroll and hold thereby controlling the scrolling.
on IOS it only works when you flick and let the scroll momentum end by itself.
https://reactnative.dev/docs/scrollview#onmomentumscrollend Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).
in this case, i believe it means the behavior is incorrect on Android because it's called when it glides to a stop and when the user controls the stop.
or since there's no specific event for when both the scroll and glide are ended by the user controlling it, we should fix the behavior on iOS to behave the same on Android and update the docs to Called when the momentum scroll ends (scroll which occurs as the ScrollView stops).
Steps to reproduce
android: flick and release -> momentum end event called
android: scroll and hold at one position then release -> momentum end event called
ios: flick and release -> momentum end event called
ios: scroll via scrollbar, hold then release -> momentum end event is called
ios: flick and release via scrollbar -> momentum end event is called
ios: scroll, hold at one position then release -> momentum end event is not called
React Native Version
0.76.5
Same behavior on both the new and old architecture
Description
it seems the behavior isn't consistent between android and ios.
on android it works when you flick and release, it also works when you scroll and hold thereby controlling the scrolling.
on IOS it only works when you flick and let the scroll momentum end by itself.
https://reactnative.dev/docs/scrollview#onmomentumscrollend
Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).in this case, i believe it means the behavior is incorrect on Android because it's called when it glides to a stop and when the user controls the stop.
or since there's no specific event for when both the scroll and glide are ended by the user controlling it, we should fix the behavior on iOS to behave the same on Android and update the docs to
Called when the momentum scroll ends (scroll which occurs as the ScrollView stops).Steps to reproduce
React Native Version
0.76.5
Same behavior on both the new and old architecture
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native infoStacktrace or Logs
Reproducer
https://snack.expo.dev/@hichemfa/onmomentumscrollend-example
Screenshots and Videos
Android:
25-01-01-17-51-42.mp4
iOS:
RPReplay_Final1735750367.mp4