updated deprecated sample code in animation doc
This commit is contained in:
parent
f9dfb90a35
commit
521983480a
|
@ -1631,12 +1631,12 @@ module.exports = {
|
||||||
* then calls `setValue` on the mapped outputs. e.g.
|
* then calls `setValue` on the mapped outputs. e.g.
|
||||||
*
|
*
|
||||||
*```javascript
|
*```javascript
|
||||||
* onScroll={this.AnimatedEvent(
|
* onScroll={Animated.event(
|
||||||
* [{nativeEvent: {contentOffset: {x: this._scrollX}}}]
|
* [{nativeEvent: {contentOffset: {x: this._scrollX}}}]
|
||||||
* {listener}, // Optional async listener
|
* {listener}, // Optional async listener
|
||||||
* )
|
* )
|
||||||
* ...
|
* ...
|
||||||
* onPanResponderMove: this.AnimatedEvent([
|
* onPanResponderMove: Animated.event([
|
||||||
* null, // raw event arg ignored
|
* null, // raw event arg ignored
|
||||||
* {dx: this._panX}, // gestureState arg
|
* {dx: this._panX}, // gestureState arg
|
||||||
* ]),
|
* ]),
|
||||||
|
|
Loading…
Reference in New Issue