updated deprecated sample code in animation doc

This commit is contained in:
Qiao Liang 2015-12-18 00:11:00 +08:00
parent f9dfb90a35
commit 521983480a
1 changed files with 2 additions and 2 deletions

View File

@ -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
* ]),