react-native-flatlist-with-custom-refresh
安装
直接执行npm install react-native-flatlist-with-custom-refresh --save
使用方法
flatlist官方组件的属性和方法通用,只是增加了下拉刷新组件添加了上拉加载事件而已
//@ts-ignore ; <FlatListWithCustomRefresh ref= thisrefFlatList = ref onMyRefresh= { console; this; } style= onEndReached= { console; this; } //@ts-ignore keyExtractor= index scrollEventThrottle=16 onEndReachedThreshold=01 data=sourceData ListEmptyComponent=resFlag && <NodataHomepage/> ListHeaderComponent= <View> plateList </View> ListFooterComponent=thisstateshowFooter ? <FooterView/> : <View style=/> renderItem= this />