Update Animations.md

Remove extra whitespace
This commit is contained in:
Martin Konicek 2016-01-18 13:20:29 +00:00
parent 182e97a62c
commit 4de8a4bc6d
1 changed files with 2 additions and 2 deletions

View File

@ -213,13 +213,13 @@ respectively (`gestureState` is the second arg passed to the `PanResponder` hand
```javascript
onScroll={Animated.event(
// scrollX = e.nativeEvent.contentOffset.x
[{nativeEvent: {contentOffset: {x: scrollX}}}]
[{nativeEvent: {contentOffset: {x: scrollX}}}]
)}
onPanResponderMove={Animated.event([
null, // ignore the native event
// extract dx and dy from gestureState
// like 'pan.x = gestureState.dx, pan.y = gestureState.dy'
{dx: pan.x, dy: pan.y}
{dx: pan.x, dy: pan.y}
]);
```