react-native-pullRefreshScrollView icon indicating copy to clipboard operation
react-native-pullRefreshScrollView copied to clipboard

在FlatList中ref失效

Open GoldFriedRice opened this issue 8 years ago • 0 comments

一般在listView是这样实现的

<PullRefreshScrollView ref="PullRefresh" onRefresh={()=>this.onRefresh()}/>

请求完成时通过this.refs获取实例调用onRefreshEnd方法 但是在FlatList中通过this.refs无法拿到实例,必须使用this.flatList._listRef._scrollRef.onRefreshEnd()

GoldFriedRice avatar Sep 01 '17 05:09 GoldFriedRice