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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
环境: android
第一次上拉的时候显示了footer并且正常执行了onLoadMore , 加载到了数据之后, 继续向上拉,当第二次达到列表尾部时, 这时候footer被隐藏了没有执行onLoadMore
onLoadMore
看了下源码,原因应该是
this._canLoadMore 这个变量第一次onLoadMore之后就被设置成false,导致之后无法继续加载
this._canLoadMore
false
下面是我的代码:
<PullToRefreshListView viewType={PullToRefreshListView.constants.viewType.listView} ref={comp => this._pullToRefreshListView = comp} dataSource={this.state.ds} renderRow={this.renderRow.bind(this)} renderHeader={this.renderRefreshHeader.bind(this)} renderFooter={this.renderFooter.bind(this)} removeClippedSubviews={true} enableEmptySections pagingEnabled={false} pageSize={28} initialListSize={28} onEndReachedThreshold={10} onLoadMore={this.onLoadMore.bind(this)} onRefresh={this.onRefresh.bind(this)} autoLoadMore={true} > </PullToRefreshListView>
The text was updated successfully, but these errors were encountered:
我的也是,感觉算_canLoadMore 有问题
Sorry, something went wrong.
No branches or pull requests
环境: android
第一次上拉的时候显示了footer并且正常执行了
onLoadMore
, 加载到了数据之后, 继续向上拉,当第二次达到列表尾部时, 这时候footer被隐藏了没有执行onLoadMore
看了下源码,原因应该是
this._canLoadMore
这个变量第一次onLoadMore
之后就被设置成false
,导致之后无法继续加载下面是我的代码:
The text was updated successfully, but these errors were encountered: