-
Notifications
You must be signed in to change notification settings - Fork 2.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 doesn't fire snap event for the last item when scrolled all the way #681
Comments
Having the same issue with RN 0.60.4 |
Having the same issue (RN 0.61.4). Any workaround available before a fix is deployed? |
I couldn't find any workarounds so far, would actually appreciate it very much, if someone did. |
@dbilgin Haven't found one yet, unfortunately. |
I believe the same happens on Android when scrolling past the first item. The callback isn't fired then either. |
My solution:
|
Have the same issue with both first and last items |
@luka-iyarn that doesn't fix it for me unfortunately. |
@bd-arc thank you for your work on the library! It is by far the best carousel library for RN out there. Is this particular bug on Android something that you want to address in version 4, or is this something that can be fixed in the current 3.x approach? |
Hey guys! Did any of you tried the 4.x beta version? (the latest one being Since the carousel has been heavily updated, it might now work out-of-the box. Scroll events on Android have always been unreliable, but I'm hoping that the improved logic will fix your issue. Let me know! |
@bd-arc thank you for your response! I just tried it on my project again with |
I ended up creating a custom logic on 'onScroll'
|
This comment was marked as spam.
This comment was marked as spam.
Just gonna go with FlatList. |
Is this a bug report, a feature request, or a question?
This is a bug report, I have seen this but I am doubtful that it's the same thing.
Have you followed the required steps before opening a bug report?
(Check the step you've followed - put an
x
character between the square brackets ([]
).)Have you made sure that it wasn't a React Native bug?
Yes.
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
It's only on Android.
Is the bug reproductible in a production environment (not a debug one)?
Yes, tried it with an assembled apk.
Environment
Expected Behavior
When I swipe to the very last item I expect the snap events to fire even if I didn't stop my finger immediately when the swipe was in place and that I wouldn't have to nudge the carousel again to make it work.
Actual Behavior
Reproducible Demo
Here is the demo
Steps to Reproduce
I think the steps are fairly simple
The text was updated successfully, but these errors were encountered: