react-chatview
react-chatview copied to clipboard
onInfiniteLoad not firing?
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})
}
Sorry. I'm late.
onInfiniteLoad trigging need to shouldTriggerLoad() results is true.
You can add shouldTriggerLoad={() => { return true; }}
@jasongrishkoff @gimdongwoo - having the same problem, even with shouldTriggerLoad returning true
Same problem here!