Skip to content

Commit

Permalink
Update Animations.md
Browse files Browse the repository at this point in the history
Remove extra whitespace
  • Loading branch information
mkonicek authored and christopherdro committed Jan 20, 2016
1 parent 3e0fa14 commit 0221ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
]);
```
Expand Down

0 comments on commit 0221ddf

Please sign in to comment.