How to use the FlatList Component — React Native Basics
Spencer Carli
4K57

Great tutorial,

I have a question. What if at the time user scroll to bottom, an scroll up again and down again, so the onEndReached event will be called many times. How you handle that? I mean, it might call fetch data on page 2, then 3, 4 very fast.

In iOS, it has NSObject.cancelPreviousPerformRequest I wonder, is there anything same in React, or in the handleLoadMore I should check the refreshing state?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.