From aa05040a324fd4047fe67d18d108249e2bb5132a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 20 Jul 2015 17:32:34 +0000 Subject: [PATCH] update website --- docs/animations.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/animations.html b/docs/animations.html index 5523f040ade..a074e5e966e 100644 --- a/docs/animations.html +++ b/docs/animations.html @@ -112,9 +112,9 @@ map syntax so that values can be extracted from complex event objects. The first level is an array to allow mapping across multiple args, and that array contains nested objects. In the example, you can see that scrollX maps to event.nativeEvent.contentOffset.x (event is normally the first arg to the -handler), and pan.x maps to gestureState.dx (gestureState is the second -arg passed to the PanResponder handler).

onScroll={Animated.event( - [{nativeEvent: {contentOffset: {y: pan.y}}}] // pan.y = e.nativeEvent.contentOffset.y +handler), and pan.x and pan.y map to gestureState.dx and gestureState.dy, +respectively (gestureState is the second arg passed to the PanResponder handler).

onScroll={Animated.event( + [{nativeEvent: {contentOffset: {x: scrollX}}}] // scrollX = e.nativeEvent.contentOffset.x )} onPanResponderMove={Animated.event([ null, // ignore the native event