React Native FlatList Pagination not working - onEndReached doesn't fired

后端 未结 4 1669
误落风尘
误落风尘 2021-01-12 10:30

I am using react-native FlatList component to list of items Pagination is not happening as expected , as per documentation onEndReached has to get fired when end of page is

相关标签:
4条回答
  • 2021-01-12 10:59

    Same thing happens with me you need to add contentContainerStyle={flex:1}

    <Content contentContainerStyle={{ flex: 1 }}>
    
    0 讨论(0)
  • 2021-01-12 10:59
    onEndReachedThreshold={0.5}     remove this line
    
    0 讨论(0)
  • 2021-01-12 11:22

    Pass extraData prop to FlatList as extraData = {this.state} check the docs for more info.

    0 讨论(0)
  • 2021-01-12 11:26

    You use NativeBase in your project and the Flatlist is on Content they are conflict. To solve this problem you need to remove Content

    0 讨论(0)
提交回复
热议问题