Poplar icon indicating copy to clipboard operation
Poplar copied to clipboard

ParallaxScrollView 中 feedlist 不断加载onEndReached

Open hotcne opened this issue 5 years ago • 0 comments

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将不会加载下一页

hotcne avatar Aug 17 '20 13:08 hotcne