Skip to content

无法上拉加载更多 #25

@f111fei

Description

@f111fei

环境: android

第一次上拉的时候显示了footer并且正常执行了onLoadMore , 加载到了数据之后, 继续向上拉,当第二次达到列表尾部时, 这时候footer被隐藏了没有执行onLoadMore

看了下源码,原因应该是

this._canLoadMore 这个变量第一次onLoadMore之后就被设置成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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions