You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ enum OpenDirection {
46
46
|`snapPointsLeft`|`number[]`| Pixel values left-swipe snaps to (eg. `[100, 300]`) |
47
47
|`snapPointsRight`|`number[]`| Pixel values right-swipe snaps to (eg. `[100, 300]`) |
48
48
|`renderOverlay`|`RenderOverlay`| Component to be rendered on top. Use if you need access to programmatic open/close methods. May altenatively pass children to SwipeableItem. |
49
-
|`onChange`|`(params: { open: OpenDirection, snapTo: number }) => void`| Called when row is opened or closed. |
49
+
|`onChange`|`(params: { open: OpenDirection, snapPoint: number }) => void`| Called when row is opened or closed. |
50
50
|`swipeEnabled`|`boolean`| Enable/disable swipe. Defaults to `true`. |
51
51
|`activationThreshold`|`number`| Distance finger must travel before swipe engages. Defaults to 20. |
52
52
|`swipeDamping`|`number`| How much swipe velocity determines snap position. A smaller number means swipe velocity will have a larger effect and row will swipe open more easily. Defaults to `10`. |
0 commit comments