-
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
Snaptoitem doesn't work with more than 10 elements? #513
Comments
Hello, I had the same issue and I solved it by using the initialNumToRender prop ! |
It looks like the new version 3.8.0 has a bug, I only have 3 items but snaptoitem works only for the first call/action then its not functioning, same with snaptonext and snaptoprev. I;m using the latest RN0.59.8 @LimAlbert |
@eggybot i have the same issue, do you have any solution? |
@cr1s3c |
@eggybot thank you, after reverting to 3.7.5 and reverting react from 16.8.3 to 16.6.3 it is working again. |
Well, I now need to find out which one of the PR I recently merged is responsible for that. #443 is a strong candidate IMO. If someone has the time to test if reverting this fixes the issue, I'd really appreciate it. |
@rafalzawadzki |
@eggybot Thanks 3.7.5 for fixing my problem |
Any update on this? |
@vittau Have you given a try to version We're now relying on |
Thank you! It really does work correctly now without having to set |
Something interesting I meet when trying fix this problem. I have very loaded screen with carousel of video components and custom interface. When I snap from 1 video to 10+, slider stucks on 6-7th card, but when I set prop windowSize={SCREEN_WIDTH} bug disappeared and I successfully snap from 1 to 40 without stucks. Tested on iPhone 11, iPhone 6s. UPD: Yep since it's common flatlist, windowSize eats RAM |
This comment was marked as spam.
This comment was marked as spam.
I tried both |
Is this a bug report, a feature request, or a question?
Question
There're 11 cards in my snap carousel. When i try snapToItem(i) where i < 10, it works perfectly fine but when i try snapToItem(10), it just moves to the 10th card. Isn't it supposed to move to the 11th card since i'm passing a index of 10. Is there any kind of limit over number of cards in the snapcarousel?
The text was updated successfully, but these errors were encountered: