mirror of
https://github.com/status-im/react-native.git
synced 2025-02-06 14:43:49 +00:00
Merge pull request #4846 from qbig/minor-doc-animation
[Doc][Minor] updated deprecated sample code in animation doc
This commit is contained in:
commit
8b03b9654d
@ -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