How do I know the scroll state in a FlatList?
How do I know the scroll state in a FlatList? For example, startScroll, Scrolling, endScroll
<FlatList
onScroll={(e) => { }}
/>
there is an onScroll mothed, but it only starts when scrolling. I want to listen to the start and end of the scroll, how can I do that?
I also tried using TouchableWithoutFeedback:
<TouchableWithoutFeedback
onPressIn={() => console.log('in')}
onPressOut={() => console.log('out')}>
<View><FlatList/></View>
</TouchableWithoutFeedback>
But touch events will be intercepted by TouchableWithoutFeedback, FlatList cannot be scrolled.
+3
source to share