Skipperlla / rn-swiper-list

⚡ Lightning fast and customizable tinder-like swiper for React Native
https://www.npmjs.com/package/rn-swiper-list
MIT License
134 stars 13 forks source link

Avoid rendering all cards (performance) #36

Open tilap opened 1 day ago

tilap commented 1 day ago

When mounting , it process renderCard over all the item we provide in data.

We quickly encounter performance issues (and even app crashs) if we have a lot of data (a lot = 100 or above).

It would be great to have an option to avoid rendering cards depending on the current active index for example.

Skipperlla commented 1 day ago

I have a development on this, but I can't add it right now because I don't have the time, but I will do it as soon as possible.