For some reason that I don't understand, my ListView keeps firing even though it's at the top of the scroll, I need to wrap it inside a ScrollView because I want my ToolBar to hide when the user scrolls down in the ListView as well.
This is the render() method's content:
<ScrollView>
<ActivityContainer>
<ListView
onEndReachedThreshold={100}
pageSize={10}
initialListSize={20}
onEndReached={() => {
console.log("fired"); // keeps firing
}}
enableEmptySections={true}/>
</ActivityContainer>
</ScrollView>
Also tried wrapping the Whole thing in a view like this:
<ScrollView>
<View>
<ActivityContainer>
<ListView
onEndReachedThreshold={100}
pageSize={10}
initialListSize={20}
onEndReached={() => {
console.log("fired"); // keeps firing
}}
enableEmptySections={true}/>
</ActivityContainer>
</View>
</ScrollView>
Edit: I don't need renderHeader because I'm trying to scroll through everything on top of the ListView, it has many components and views and child views, not the header of the list view.