react-native-swipeable icon indicating copy to clipboard operation
react-native-swipeable copied to clipboard

Swipeable seems to interfere with iOS NavigationController's 'swipe-back' gesture.

Open acrocat opened this issue 8 years ago • 4 comments

In iOS, when you have a navigation stack, there's a very handy gesture to swipe from the left screen edge to right to pop the current view from the stack and 'navigate backwards'. The swipeables in my ListView seem to be capturing the gesture, even though I only have rightSide content.

Is there a way to prevent it doing this?

acrocat avatar Sep 24 '17 15:09 acrocat

Soooooo..... what is the fix?

agates4 avatar Feb 17 '18 20:02 agates4

For those that need an immediate fix, you can install my fork. I updated with Ngandhy's changes and allowed it to install with npm from my repo.

Install npm install --save agates4/react-native-swipeable

Usage

<Swipeable
    swipeStartMinLeftEdgeClearance={100}
>

Using that prop, you will be able to swipe back with navigation without a problem.

agates4 avatar Feb 17 '18 21:02 agates4

Has this been implemented yet?

nica0012 avatar Aug 13 '20 14:08 nica0012

@jshanson7 :)

nica0012 avatar Aug 13 '20 14:08 nica0012