on-internet
← Community

onStartShouldSetPanResponder vs onStartShouldSetPanResponderCapture in react native

Stack Overflow ·

Looking at the React Native documentation on PanResponder, I was able to get a glimpse of various callback methods allowed inside PanResponder.create, such as- onStartShouldSetPanResponder onStartShouldSetPanResponderCapture onMoveShouldSetPanResponder onMoveShouldSetPanResponderCapture onPanResponderGrant onPanResponderMove onPanResponderRelease onPanResponderTerminate etc. I can understand that returning true from onStartShouldSetPanResponder allows the corresponding element to become the responder and start capturing the gesture events. onPanResponderGrant is called immediately after the el

Comments

Sign in or sign up to comment and upvote.

No comments yet.