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

onInfiniteLoad not firing? #34

Open
jasongrishkoff opened this issue Nov 12, 2017 · 3 comments
Open

onInfiniteLoad not firing? #34

jasongrishkoff opened this issue Nov 12, 2017 · 3 comments

Comments

@jasongrishkoff
Copy link

jasongrishkoff commented Nov 12, 2017

I've tried implementing this with npm, but finding that the onInfiniteLoad doesn't ever fire? Is there some magic trick I'm missing here?

<ChatView
 flipped={true}
 reversed={true}
 scrollLoadThreshold={200}
 onInfiniteLoad={this.loadMore}
>   
   {this.renderChats()}
</ChatView>
this.loadMore = () => {
  console.log('Loading more!')
  this.setState({limit:this.state.limit + 20})
}
@gimdongwoo
Copy link
Collaborator

gimdongwoo commented Nov 30, 2017

Sorry. I'm late.

onInfiniteLoad trigging need to shouldTriggerLoad() results is true.

You can add shouldTriggerLoad={() => { return true; }}

@yonahforst
Copy link

@jasongrishkoff @gimdongwoo - having the same problem, even with shouldTriggerLoad returning true

@theinvensi
Copy link

Same problem here!

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

4 participants