Skip to content

Commit 5219834

Browse files
committed
updated deprecated sample code in animation doc
1 parent f9dfb90 commit 5219834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Animated/src/AnimatedImplementation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,12 +1631,12 @@ module.exports = {
16311631
* then calls `setValue` on the mapped outputs. e.g.
16321632
*
16331633
*```javascript
1634-
* onScroll={this.AnimatedEvent(
1634+
* onScroll={Animated.event(
16351635
* [{nativeEvent: {contentOffset: {x: this._scrollX}}}]
16361636
* {listener}, // Optional async listener
16371637
* )
16381638
* ...
1639-
* onPanResponderMove: this.AnimatedEvent([
1639+
* onPanResponderMove: Animated.event([
16401640
* null, // raw event arg ignored
16411641
* {dx: this._panX}, // gestureState arg
16421642
* ]),

0 commit comments

Comments
 (0)