I need to do some actions when the user has finished refreshing the data on my FlatList with onRefresh props.
I didn't find anything on the doc, so I was wondering if there was any way to do something like that?
I need to do some actions when the user has finished refreshing the data on my FlatList with onRefresh props.
I didn't find anything on the doc, so I was wondering if there was any way to do something like that?
Maybe you are looking for something like this https://medium.com/@pateldhara248/flatlist-with-loadmore-and-pull-to-refresh-582d48eca60b. It says that you need to provide refreshControl prop to FlatList which will be your Component displayed when the flatList is pulled to refresh. and to this component you will provide prop onRefresh which will be a function called when the Flatlist is pulled to refresh so in that function you can call your API to fetch data for the FlatList.