mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 17:54:48 +00:00
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.
|
||||
*
|
||||
*```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
|
||||
* ]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user