React native 自动响应本机/API Flatlist新添加的加载数据,无需重新加载
Im使用flatlist显示数据。每次我都必须返回到同一页面来显示新添加的数据。任何人都可以在不刷新页面的情况下建议数据。像这样,实现刷新控制/拉入刷新,以便您可以刷新而不是返回React native 自动响应本机/API Flatlist新添加的加载数据,无需重新加载,react-native,expo,React Native,Expo,Im使用flatlist显示数据。每次我都必须返回到同一页面来显示新添加的数据。任何人都可以在不刷新页面的情况下建议数据。像这样,实现刷新控制/拉入刷新,以便您可以刷新而不是返回 <FlatList data={this.props.notificationReducer.notifications} renderItem={({item, index}) => { return this.renderEachCard(item.d
<FlatList
data={this.props.notificationReducer.notifications}
renderItem={({item, index}) => {
return this.renderEachCard(item.description, item.added_on, index);
}}
refreshControl={
<RefreshControl
refreshing={this.props.notificationReducer.pullToRefresh}
onRefresh={this.getNotificationData}
/>
}
/>
{
返回此.renderAChard(item.description,item.added\u on,index);
}}
刷新控制={
}
/>
希望你得到它。无需怀疑尝试实施拉入刷新,以便在数据更改时,您可以显式拉入刷新您的公寓列表谢谢Gaurav Roy先生,但我不想要刷新选项。我需要像自动加载(像聊天信息不需要刷新)