We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39966fd commit 4d039acCopy full SHA for 4d039ac
packages/core/src/components/SwipeableItem/SwipeableItem.tsx
@@ -83,6 +83,8 @@ const SwipeableItem: React.FC<React.PropsWithChildren<Props>> = ({
83
stopLeftSwipe,
84
stopRightSwipe,
85
friction = 20,
86
+ disableLeftSwipe,
87
+ disableRightSwipe,
88
...rest
89
}) => {
90
const instanceOfSwipeableItemButtonProps = (
@@ -242,6 +244,8 @@ const SwipeableItem: React.FC<React.PropsWithChildren<Props>> = ({
242
244
swipeGestureEnded={onStopSwiping}
243
245
closeOnRowPress={closeOnPress}
246
friction={friction}
247
+ disableLeftSwipe={disableRightSwipe}
248
+ disableRightSwipe={disableLeftSwipe}
249
{...rest}
250
>
251
<View style={styles.behindContainer}>
0 commit comments