Skip to content

ParallaxScrollView 中 feedlist 不断加载onEndReached #11

@hotcne

Description

@hotcne

ParallaxScrollView 中 FlatList 会不断加载onEndReached
请问您是怎么解决的呢?

    <FlatList
      isComment={this.state.isComment}
      keyExtractor={(item, index) => index.toString()}
      data={this.state.feeds}
      renderItem={(item) => this.renderFeed(item)}
      renderFooter={() => this.renderFooter()}
      onEndReached={() => this.onEndReached()}
      onEndReachedThreshold={0.01}
      refreshing={this.state.isRefreshing}
      onRefresh={() => this.onRefresh()}
      style={styles.listView}
    />

如果把onEndReachedThreshold设置成0将不会加载下一页

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions