Skip to content
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] onEndReached function #372

Open
durdevic opened this issue May 2, 2020 · 0 comments
Open

[Feature request] onEndReached function #372

durdevic opened this issue May 2, 2020 · 0 comments

Comments

@durdevic
Copy link

durdevic commented May 2, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant