Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

onLoadMoreAsync isn't called until the scroll movement even if bottom is visible #9

Open
agolovenko opened this issue Oct 23, 2015 · 4 comments

Comments

@agolovenko
Copy link

Well, this one is more of a feature request.

Say my async load function only fetches 3 rows at a time. And 3 rows are just half of the screen.
For now I need to scroll the rows in order onLoadMoreAsync to be triggered to load more rows. Ideally I'd like it to be triggered while (canLoadMore && the screen isn't full with rows).

Otherwise great project, thanks=)

@Jaafar-abusair
Copy link

show us your code dude

@ide
Copy link
Member

ide commented Sep 4, 2016

Yeah, this is a real bug. I spent some time a few months ago trying to fix it cleanly but got stuck since the notion of rows is specific to ListViews, not ScrollViews, so InfiniteScrollView doesn't have enough information to know when ListView has finished rendering the rows (potentially after several frames, depending on what your pageSize prop is set to) and that we need to fetch more. Sorry I don't have a more optimistic update than that.

@Jaafar-abusair
Copy link

@ide what about the loading indicator? Its not working for me

@ide
Copy link
Member

ide commented Sep 5, 2016

I think that's unrelated to this issue.

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

No branches or pull requests

3 participants