如何知道FlatList中的滚动状态?如startScroll,Scrolling,endScroll
<FlatList
onScroll={(e) => { }}
/>
Run Code Online (Sandbox Code Playgroud)
有onScroll mothed,但它只在滚动时运行.我想听滚动的开始和结束,我该怎么办?
我也尝试过使用TouchableWithoutFeedback:
<TouchableWithoutFeedback
onPressIn={() => console.log('in')}
onPressOut={() => console.log('out')}>
<View><FlatList/></View>
</TouchableWithoutFeedback>
Run Code Online (Sandbox Code Playgroud)
但触摸事件将被TouchableWithoutFeedback拦截,FlatList无法滚动.
react-native ×1