onEndReached in Flatlist issue
I have same problem with react-native 0.50.3
<Flatlist>
must not be used in a <ScrollView>
if you want to use onEndReached
because Flatlist can not found the height.
Use a <View>
instead
I have same problem with RN 0.52
That look like because Flatlist can not found the heigh. So he can not find the end of list.
Fix by wrap your flatlist by a View with flex=1
<View style={{flex: 1}} > <Flatlist /> <View>
It was because of the enclosing <Content>
tag. Sometimes embedding react-native tags with native-base tags causes such issues. I replaced the content and container tag with View
tags and now it works fine.