From f1a9e6831b4bbf2ed97f1174047fab6e7c9a0678 Mon Sep 17 00:00:00 2001 From: Felippe Rodrigo Puhle Date: Mon, 30 Dec 2019 18:24:18 -0300 Subject: [PATCH] =?UTF-8?q?fix(=F0=9F=93=96):=20gesture=20docs=20(#150)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9389ed6b..e997603e 100644 --- a/README.md +++ b/README.md @@ -498,15 +498,15 @@ Example usage for a vertical `PanGestureHandler`. ```js const translationX = new Value(0); const state = new Value(State.UNDETERMINED); -const gestureEvent = onGestureEvent({ translationX, state }); -return ; +const gestureHandler = onGestureEvent({ translationX, state }); +return ; ``` ### `panGestureHandler()` ```tsx const { - gestureEvent, + gestureHandler, state translationX, velocityX, @@ -514,7 +514,7 @@ const { velocityY } = panGestureHandler(); return ( - + ); ``` @@ -522,13 +522,13 @@ return ( ```tsx const { - gestureEvent, + gestureHandler, state translationX, velocityX, } = horizontalPanGestureHandler(); return ( - + ); ``` @@ -536,21 +536,21 @@ return ( ```tsx const { - gestureEvent, + gestureHandler, state translationY, velocityY, } = verticalPanGestureHandler(); return ( - + ); ``` ### `panGestureHandler()` ```tsx -const { gestureEvent, translationX, translationY } = panGestureHandler(); -return ; +const { gestureHandler, translationX, translationY } = panGestureHandler(); +return ; ``` ### `withSpring({ value: Node, velocity: Node, state: Value, offset: Node, config, snapPoints: Node[], onSnap: (value) => void }): Node`