react-chatview icon indicating copy to clipboard operation
react-chatview copied to clipboard

onInfiniteLoad not firing?

Open jasongrishkoff opened this issue 8 years ago • 3 comments

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})
}

jasongrishkoff avatar Nov 12 '17 12:11 jasongrishkoff

Sorry. I'm late.

onInfiniteLoad trigging need to shouldTriggerLoad() results is true.

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

gimdongwoo avatar Nov 30 '17 14:11 gimdongwoo

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

yonahforst avatar Dec 31 '17 15:12 yonahforst

Same problem here!

theinvensi avatar Jan 11 '18 16:01 theinvensi