React Native nested ListView triggers onEndReached multiple times on loading

眉间皱痕 提交于 2019-12-05 13:04:10

This is how my flat list looks like and it works fine.

https://github.com/facebook/react-native/issues/16067

    <FlatList
        onEndReachedThreshold={ 0.5 }
        onEndReached={ () => this.onEndReached() }
        refreshing= { false }
        onRefresh={ ()=> {
            this.refetchData()
        } }
        data={this.state.data}
        renderItem={({ item }) => <Item  id={item.key} />} />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!