react-native-reanimated-bottom-sheet
react-native-reanimated-bottom-sheet copied to clipboard
Disable Swipe Down to close
Is there a way to disable only close to swipe down gesture while keeping all the other gestures enabled?
same question here
Same - or, more optimally, swipe to close should only work when swiping the header, not the whole sheet.
I figured this out, simply set-prop enabledContentGestureInteraction to false. (The README should probably be updated to say "swipeable" not "scrollable".) This disabled the swipe to close on the content (so you could put something in it like a scrollview for example and not be worried that scrolling there will close the sheet) Swiping on the header will still close the sheet.
Interestingly we've seen that even if enabledContentGestureInteraction is false, you can still swipe to close on iOS devices 🤷♂️