File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/components/panningViews Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ class PanListenerView extends PureBaseComponent {
24
24
directions : PropTypes . arrayOf ( PropTypes . oneOf ( Object . values ( PanningProvider . Directions ) ) ) ,
25
25
/**
26
26
* This is were you will get notified when a drag occurs
27
- * onDrag = ({directions, velocities }) => {...}
27
+ * onDrag = ({directions, deltas }) => {...}
28
28
* 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)
30
30
* Both arrays will have {x, y} - if no x or y drag has occurred this value will be undefined
31
31
*/
32
32
onDrag : PropTypes . func ,
33
33
/**
34
34
* This is were you will get notified when a swipe occurs
35
- * onSwipe = ({directions, deltas }) => {...}
35
+ * onSwipe = ({directions, velocities }) => {...}
36
36
* 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)
38
38
* Both arrays will have {x, y} - if no x or y swipe has occurred this value will be undefined
39
39
*/
40
40
onSwipe : PropTypes . func ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import asPanViewConsumer from './asPanViewConsumer';
12
12
* @example : https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/PanResponderScreen.js
13
13
*/
14
14
class panResponderView extends PureComponent {
15
- static displayName = 'panResponderView ' ;
15
+ static displayName = 'PanResponderView ' ;
16
16
static propTypes = {
17
17
/**
18
18
* Will be called with the current location ({left, top}) when the pan has ended
You can’t perform that action at this time.
0 commit comments