PanResponder

PanResponder is a higher level abstraction that can be used to recognize simple touch gestures. It gives you access to both the raw nativeEvent and a gestureState object.

The nativeEvent provides you all the touches and their locations. Whereas, gestureState is a wrapper object that also tracks accumulated distance, velocity and the touch origin (coordinates where the touch was when the responder was granted access).

Example

Run the example: rnplay.org/apps/Sxb2tQ

Last updated

Was this helpful?