ReactNative FlatList 检测滚动到列表中的最后一个项目
ReactNative FlatList detect scroll to the last Item on List
如何检测用户是否已滚动到 FlatList 列表的末尾,以便我可以添加一条页脚消息“您现在位于列表的末尾”。
我们将不胜感激。
您可以在 Flatlist 中使用 header/footer 组件
例如,
<FlatList
.....
ListFooterComponent={<Text>You're now at the end of the list</Text>}
/>
如何检测用户是否已滚动到 FlatList 列表的末尾,以便我可以添加一条页脚消息“您现在位于列表的末尾”。
我们将不胜感激。
您可以在 Flatlist 中使用 header/footer 组件 例如,
<FlatList
.....
ListFooterComponent={<Text>You're now at the end of the list</Text>}
/>