phil-r / react-native-looped-carousel

:carousel_horse: Looped carousel for React Native
MIT License
1.49k stars 306 forks source link

¿How do to lazy load? #60

Open jasmo2 opened 7 years ago

jasmo2 commented 7 years ago

Hello I am rendering a lot slides so I prefer to do a lazy on each swipe call. ¿How could it be posible?

viktorsec commented 7 years ago

I'm not sure if this is still relevant to you, but I guess you would need to monitor the carousel state through currentPage and tell your views to update as necessary.

In case you don't know the number of pages beforehand, than even that might not work as it might mess the pagination up.

calvinkei commented 4 years ago

i guess using flatlist instead of scrollview will do the magic?