Merge pull request #4846 from qbig/minor-doc-animation

[Doc][Minor] updated deprecated sample code in animation doc
This commit is contained in:
Adam Miskiewicz 2015-12-17 15:07:10 -05:00
commit 8b03b9654d

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