gameboyVito / react-native-ultimate-listview

A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row.
https://www.npmjs.com/package/react-native-ultimate-listview
MIT License
540 stars 87 forks source link

react-native-ultimate-listview删除一条数据后如何再次触发刷新事件 来更新列表视图 #68

Closed mcl950121 closed 4 years ago

mcl950121 commented 4 years ago

<UltimateListView ref={ref => this.listView = ref} key={this.state.layout} onFetch={this.onFetch.bind(this)} keyExtractor={(item, index) => ${index} - ${item}} refreshable={true} allLoadedText={'没有更多数据了'} waitingSpinnerText={'加载中...'} item={this.renderItem.bind(this)} // this takes three params (item, index, separator)
/>

this.listView.refresh() 这个可以重置刷新