-
Notifications
You must be signed in to change notification settings - Fork 460
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
[Feature Request] Infinite swiping with lazy loading #7
Comments
What react native version are you using? I cannot reproduce with 0.43.3 |
I found the solution : set the infinite props to false. Also, make sure that the value of the cards props is not an empty array. The infinite prop makes swiping infinite when set the true.
@lalzada Is this good now? |
Thanks for quick support.. Yes.. removing I am replacing that single item in list when user swipe (onSwipedTop and onSwipedBottom). The main purpose is to load next video when user swipe on screen... Lazy loaded videos if i have single item in list at the start and i remove the OR i am keeping that list empty and render my next video inside renderCard() function when user swipe but keeping this scenario is best fit for |
ohh i see that the next video is playing when i swipe on screen but its not showing on screen actually.. Don't know the the problem is exactly... |
Here is an exemple of inifinite swiping with lazy loading. As you can see, you can keep the cards in the state of the component containing the Swiper, and add elements on the onSwiped events...
|
i tried but no way. still i didn't add new card. could you please to me? |
Example above should work with #285. @safciplak you can try that. |
I am trying to call Swiper with a list which has only single item but it displays it 2 times. not sure what i am doing wrong or havn't understand it well.
when i first load it, there are 2 videos playing on the top of each other.
The text was updated successfully, but these errors were encountered: