react-native ScrollView in pan responder

2020-06-11
I want to use react-native ScrollView in panResponder.
I expect to run scroll-event when drag contents in ScrollView. I expect panResponder-event occur when drag contents that is not in ScrollView,
write code:

Not Working Code1

PanResponder.create({ onStartShouldSetPanResponder: () => true, onMoveShouldSetPanResponder: () => true, onPanResponderMove: (event, gestureState) => {} ... return (<View {...panResponders.panHandlers}> <ScrollView > ... </ScrollView> </View>)
panResponder works, Scroll did not work
i found that 'onStartShouldSetPanResponder: () => true' makes scroll not work
and when using 'onStartShouldSetPanResponder: ()=> false' panResponder did not work

I found solution for this,
buy me a coffeebuy-me-a-coffee