diff --git a/releases/next/docs/panresponder.html b/releases/next/docs/panresponder.html index 72cf9aa770c..f3c7f643035 100644 --- a/releases/next/docs/panresponder.html +++ b/releases/next/docs/panresponder.html @@ -1,6 +1,7 @@ PanResponder – React Native | A framework for building native apps using React

PanResponder #

Edit on GitHub

PanResponder reconciles several touches into a single gesture. It makes single-touch gestures resilient to extra touches, and can be used to -recognize simple multi-touch gestures.

It provides a predictable wrapper of the responder handlers provided by the +recognize simple multi-touch gestures.

By default, PanResponder holds an `InteractionManager handle to block +long-running JS events from interrupting active gestures.

It provides a predictable wrapper of the responder handlers provided by the gesture responder system. For each handler, it provides a new gestureState object alongside the native event object:

onPanResponderMove: (event, gestureState) => {}

A native event is a synthetic touch event with the following form:

  • nativeEvent
    • changedTouches - Array of all touch events that have changed since the last event
    • identifier - The ID of the touch
    • locationX - The X position of the touch, relative to the element
    • locationY - The Y position of the touch, relative to the element
    • pageX - The X position of the touch, relative to the root element
    • pageY - The Y position of the touch, relative to the root element
    • target - The node id of the element receiving the touch event
    • timestamp - A time identifier for the touch, useful for velocity calculation
    • touches - Array of all current touches on the screen

A gestureState object has the following: