react-images icon indicating copy to clipboard operation
react-images copied to clipboard

[Feature request] onEndReached function

Open durdevic opened this issue 5 years ago • 0 comments

A function similar to https://reactnative.dev/docs/flatlist#onendreached. It could be really helpful for lazy loading the images.

A good example are messengers. I first load the 20 messages with an image, but I have 50 in total. When I open the chat, and I open the first image thorough the carousel, there is no easy way for me to load the next 30 if I hit the end of the carousel.

I think it should be manageable to implement cuz you get the finite list of elements and can just ask how many images before the end (onEndReachedThreshold) is the function going to be triggered.

Thanks!

durdevic avatar May 02 '20 11:05 durdevic