Skip to content
New issue

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

ParallaxScrollView 中 feedlist 不断加载onEndReached #11

Open
hotcne opened this issue Aug 17, 2020 · 0 comments
Open

ParallaxScrollView 中 feedlist 不断加载onEndReached #11

hotcne opened this issue Aug 17, 2020 · 0 comments

Comments

@hotcne
Copy link

hotcne commented Aug 17, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant