[FlatList] Some questions about onEndReached #20284
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
onEndReached triggered 2 times on ios ,but,it is normal on android .If I change a way of writing:
The method of "onEndReached" on IOS will not be executed two times.But there will be another problem,
When I first scrolled to the bottom of the list to trigger the "onEndReached" method, if the network request failed and no new list data was rendered, I scrolled again to the bottom of the list and the "onEndReached" method could not be triggered again
The problems of the above two ways of writing:
1、When I am not on the first page list, if I afresh render the list, It will still automatically execute a "onEndReached" method, but I do not scroll to trigger the "onEndReached" method 。
2、When the first render list is less than one screen, the "onEndReached" method will still execute automatically.
I really don't know why these problems will arise. If anyone knows the reasons, please explain them.
The text was updated successfully, but these errors were encountered: