Skip to content

Commit bb33154

Browse files
M-i-k-e-lethanshar
authored andcommitted
Fix pan related docs (#623)
1 parent c6b0a63 commit bb33154

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/panningViews/panListenerView.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ class PanListenerView extends PureBaseComponent {
2424
directions: PropTypes.arrayOf(PropTypes.oneOf(Object.values(PanningProvider.Directions))),
2525
/**
2626
* This is were you will get notified when a drag occurs
27-
* onDrag = ({directions, velocities}) => {...}
27+
* onDrag = ({directions, deltas}) => {...}
2828
* directions - array of directions
29-
* velocities - array of velocities (same length and order as directions)
29+
* deltas - array of deltas (same length and order as directions)
3030
* Both arrays will have {x, y} - if no x or y drag has occurred this value will be undefined
3131
*/
3232
onDrag: PropTypes.func,
3333
/**
3434
* This is were you will get notified when a swipe occurs
35-
* onSwipe = ({directions, deltas}) => {...}
35+
* onSwipe = ({directions, velocities}) => {...}
3636
* directions - array of directions
37-
* deltas - array of deltas (same length and order as directions)
37+
* velocities - array of velocities (same length and order as directions)
3838
* Both arrays will have {x, y} - if no x or y swipe has occurred this value will be undefined
3939
*/
4040
onSwipe: PropTypes.func,

src/components/panningViews/panResponderView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import asPanViewConsumer from './asPanViewConsumer';
1212
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/PanResponderScreen.js
1313
*/
1414
class panResponderView extends PureComponent {
15-
static displayName = 'panResponderView';
15+
static displayName = 'PanResponderView';
1616
static propTypes = {
1717
/**
1818
* Will be called with the current location ({left, top}) when the pan has ended

0 commit comments

Comments
 (0)