jossmac / jossmac/react-images

[Feature request] onEndReached function

Open
#372 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
433
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.