原生集成的下拉刷新。
此库iOS基于MJRefresh,安卓基于SmartRefreshLayout,均是原生中使用非常广泛的下拉刷新库。 此库只提供基础的Base部分,但是Demo中提供了两种此库的用法,一个是默认的文字形式,一个是结合lottie实现的下拉刷新动画。
npx jetify
。$ npm install react-native-refresh --save
$ cd ios && pod install
$ cd .. && npx jetify
$ npm run ios // npm run android
$ npm install react-native-refresh --save
$ react-native link react-native-refresh
$ npm run ios // npm run android