From 521983480ad0c195143c895aa07009823520dcd2 Mon Sep 17 00:00:00 2001 From: Qiao Liang Date: Fri, 18 Dec 2015 00:11:00 +0800 Subject: [PATCH] updated deprecated sample code in animation doc --- Libraries/Animated/src/AnimatedImplementation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/Libraries/Animated/src/AnimatedImplementation.js index 09f95000d..9fdda5323 100644 --- a/Libraries/Animated/src/AnimatedImplementation.js +++ b/Libraries/Animated/src/AnimatedImplementation.js @@ -1631,12 +1631,12 @@ module.exports = { * then calls `setValue` on the mapped outputs. e.g. * *```javascript - * onScroll={this.AnimatedEvent( + * onScroll={Animated.event( * [{nativeEvent: {contentOffset: {x: this._scrollX}}}] * {listener}, // Optional async listener * ) * ... - * onPanResponderMove: this.AnimatedEvent([ + * onPanResponderMove: Animated.event([ * null, // raw event arg ignored * {dx: this._panX}, // gestureState arg * ]),