react-native-SmartRefreshLayout
react-native-SmartRefreshLayout copied to clipboard
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
 { setTimeout(() => { this.rc && this.rc.finishRefresh(); }, 1000) }} />} > } renderItem={this._renderItem} data={data} /> 我总共定义了13条数据,但是超过10的就不会渲染出来了
你的是这样的 finishRefresh=(params)=>{ this._refreshc && this._refreshc.finishRefresh(params); this.lottieView.reset(); } 然而在运行这个函数的时候就执行this.lottieView.reset();的话 在动画显示上会不合理(因为数据获取往往都是很快的 也就是说this.lottieView.play()和this.lottieView.reset();的执行间隔 取决于你数据获取的间隔) 而且在header弹回顶部时是没动画的 这样的结果往往没有显示lottie 所以 以下的方式反而适合数据获取很快的情况 finishRefresh=()=>{ this._refreshc && this._refreshc.finishRefresh(()=>{ this.lottieView.reset(); }); }
 打包时报这个错  我的gradle版本是4.10.1 android studio 3.2 RN0.55 react-native-SmartRefreshLayout 0.6.5
在iOS模拟器中运行,报Invariant Violation:requireNativeComponent:"RCTDefaultHeader" was not fount in the UIManager
修改库的版本 ` compileSdkVersion 26 buildToolsVersion "26.0.2" ` 可以修复这个问题
复现方式:先向上滑动一段距离,然后下拉刷新,手法好百分之百复现,手法不好多试几次也能复现
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...