From 65fb1f44c00616101187a80ad820c9f8b7effbb6 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Tue, 26 Apr 2016 21:00:27 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/panresponder.html | 3 ++- releases/next/docs/pickerios.html | 2 +- releases/next/docs/text.html | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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: