-
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
Snap to next does not animate on Android #721
Comments
Hi @bitttttten ! A lot of issues have been reported concerning Android with v3 and a lot of these issues have been solved by v4-beta, which is a complete refactoring of what we could call a "pile of hacks", so I can't suggest you more to try it out ! You'll certainly be amazed to see how your carousel will behave after an upgrade ! :) Debugging Android related issues about this lib is always really hard because of some persistent annoying native bugs, and I think you can't go for a better choice than to switch to the earliest beta version. |
Ah okay, I'll try the v4 beta then. Thanks for the tip! |
It animates on the v4 beta! Although I ran into a few regressions so I can't move over to v4 beta until those are resolved. But thanks again for the tip :) |
I'm glad it helped ! I made a mistake while writing my precedent comment, maybe you could try the LATEST beta version, which is v4.0.0-beta.4 I think, if you haven't already tested it. I saw your comment (#678 (comment)) and maybe I can give you some tips for solving the issues you encountered while testing the beta : • You can use the brand new 'useExperimentalSnap' prop that will prevent any "fast swipe" or "multiple items swipe". • I'm sure there's some tricks that could replace the 'scrollEnabled' prop, but yeah it's for sure a "hacky way" to solve your problem. As I said, be sure to install the LATEST version of the beta to avoid a whole bunch of bugs that are now almost entirely solved by the latest versions. |
I was on It's a bit confusing, since it doesn't list here that Thanks for your tip for the |
Is this a bug report, a feature request, or a question?
Bug report.
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?
Android
Is the bug reproductible in a production environment (not a debug one)?
Yes.
Environment
Expected Behavior
When calling
carouselRef.current.snapToItem(lastItemIndex)
the carousel will animate to the position.Actual Behavior
When calling
carouselRef.current.snapToItem(lastItemIndex)
the carousel does not animate to the position, it just snaps there. On iOS it does animate.The text was updated successfully, but these errors were encountered: