-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好作者! 你的lottie的案例里面的关闭函数有些问题 #34
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你的是这样的
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();
});
}
The text was updated successfully, but these errors were encountered: