Skip to content

Commit 19c2d2f

Browse files
committed
fix left-side element being non-interactive
1 parent f58afd2 commit 19c2d2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/components/ReanimatedSwipeable.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,10 @@ const Swipeable = forwardRef<SwipeableMethods, SwipeableProps>(
671671
{...remainingProps}
672672
onLayout={onRowLayout}
673673
style={[styles.container, containerStyle]}>
674-
{leftElement()}
675-
{rightElement()}
674+
<View>
675+
{leftElement()}
676+
{rightElement()}
677+
</View>
676678
<GestureDetector gesture={tapGesture} touchAction="pan-y">
677679
<Animated.View style={[animatedStyle, childrenContainerStyle]}>
678680
{children}

0 commit comments

Comments
 (0)