-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Android/FlatList) Fix onMomentumScrollEnd being called multiple times #32696
Comments
Same bug occurs on the |
+1 |
Was able to reproduce it on the 0.66.4 version. Android only. Hermes is enabled (maybe it would be useful). |
+1 |
This is how it worked for me
|
Thanks for this suggestion, I did something similar but with a ref instead to avoid unnecessary state updates and renders. |
I didn't find how to reference the scrolling state from ref. would you agree to share your solution? |
Second this, please share thy precious knowledge of the hooks. Saveth me from mine own perils! @ewnavilae I beg of you. |
Solution using useRef:
|
I'm having the same issue in version 0.68.2 |
Still an issue in version 0.69.6 |
Still an issue in version 0.70 |
Any update on this? The workaround doesn't work if using the snapToInterval because its the last event that is correct. I can put in a debounce but it is way too long of a debounce since the onMomentumScrollEnd gets called almost a second apart. When using snapToInterval, and user drags very little and lets go, it snaps back to the original snap location, but onMomentumScrollEnd gets called twice. once for the temp scrolled location and once for the new location |
Still an issue in version 0.71.7 |
+1 |
2 similar comments
+1 |
+1 |
Looks like this will be fixed by #32433. |
Note there's a similar problem for |
I'm still having this issue in react-native 0.72.6. |
This works but the event is called too early, it doesn't wait for the animation to end. |
# Key Changes - Carousel 컴포넌트에서 발생하는 에러를 수정했습니다. # Details - Error: https://uoslife.sentry.io/issues/4689310803/?project=4506321643569152&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=6 - Android: [해당 이슈](facebook/react-native#32696 인해 안드로이드에서는 마지막 list에서 스크롤시 처음으로 돌아가는 동작을 제외했습니다. # Closes Issue close #209
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
It must be fixed in RN 0.74.1 06668fc |
Not fixed :( |
Using RN 0.74.3 and can confirm that this issue has been fixed. |
Description
Version
0.64.1
Output of
react-native info
Steps to reproduce
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: