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

Prevent drawer close gesture from stealing events

Open adamski opened this issue 8 years ago • 5 comments

Issue Description

I have a modal screen with swipe-to-reveal sections. I'd like to move it to a drawer, but the drawer close action steals all the gestures. Is there a way to prevent this?

A crude way might be to have disableCloseGesture. Ideally, it would only respond to touches starting at the opposite edge to the side of the drawer.

Steps to Reproduce / Code Snippets / Screenshots

Add left side drawer with a screen containing e.g. SwipeListView components (react-native-swipe-list-view)


Environment

  • React Native Navigation version: 1.1.365
  • React Native version: 0.46.4
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator, iOS 11, Debug

Also posted on SO: https://stackoverflow.com/questions/48625147/how-to-prevent-drawer-close-gesture-from-stealing-events

adamski avatar Feb 07 '18 11:02 adamski

@adamski Did you find an alternative / workaround ? I'm experiencing the same issue on IOS...

zarvedan avatar Apr 19 '18 11:04 zarvedan

No, I didn't, I am using a modal at the moment instead of a drawer. I'm hoping to be able to move to a drawer soon once there is a workaround.

adamski avatar Apr 19 '18 11:04 adamski

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Jun 03 '18 11:06 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jun 10 '18 12:06 stale[bot]

Any workaround available for V1? Is this solved in V2? We have not upgraded yet.

jdegger avatar Dec 04 '18 10:12 jdegger