We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
我也是这个问题。
Sorry, something went wrong.
源码有问题
refreshableScrollView.ios.js line123
this._isRefreshing = true this.setState({ refreshStatus: RefreshStatus.refreshing, refreshTitle: this.props.refreshableTitleRefreshing })
setState是异步的, 刚刷新完并不会立即将状态设为refreshing 但是此时:
setState
refreshing
refreshableScrollView.ios.js line152
onRefreshEnd = () => { // console.log('onRefreshEnd()'); if (this.state.refreshStatus === RefreshStatus.refreshing) {
却判断了状态是不是refreshing . 可以去掉这个判断.
也可以在调用时候加个延迟, 或者放到数据请求完成/失败之后.
// <UltimateRefreshView // onRefresh={this.pageRefresh} // > pageRefresh = (endRefresh) => { this.loadData(); setTimeout(() => { endRefresh(); }, 500); }
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: