Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Drawer gestures when drawerPosition is set to "right" #7573

Closed
SystemBlad opened this issue Feb 11, 2019 · 3 comments
Closed

Wrong Drawer gestures when drawerPosition is set to "right" #7573

SystemBlad opened this issue Feb 11, 2019 · 3 comments

Comments

@SystemBlad
Copy link

Current Behavior

  • When drawerPosition is set to "right" you can slide the drawer from the middle of the screen, this behavior override other swipe right to left app gestures.
    Another incorrect behavior is shown after first time drawer is displayed an closed, to reproduce try to swipefrom left to right and you will see a drawer flash from right to left.

Expected Behavior

  • The Drawer must not be shown when user swipe in the midle of the screen
  • No drawer flash should be displayed when user swipes from left to right.

How to reproduce

  • In the sample app go to "js\Drawer.js" file.
  • Go to createDrawerNavigator configuration and add the line code (drawerPosition: "right",) to change the drawerPosition to right.
  • Execute the app and go to "Drawer example" option.
  • Try to swipe your finger from the right to left in the midle of the screen.
  • You will see that the drawer is open, the drawer must be shown just when user swipe from the right side.
  • To see the next wrong behavior you need to open and close completely the drawer.
  • Swipe from the left side to the right.
  • You will see a drawer flash on the right side.

Your Environment

software version
react-navigation 3.1.4
react-native 0.58.4
node 8.10.0
npm or yarn 6.7.0
@brentvatne brentvatne transferred this issue from react-navigation/react-navigation Feb 12, 2019
@13036manoj
Copy link

Same problem here also when i set drawerPosition to right and swipe from left then drawer try to open from right which not expected.

@lwinkyawmyat
Copy link

I have the same problem in drawerPosition: right.

@satya164
Copy link
Member

Duplicate of react-navigation/drawer#49

@satya164 satya164 transferred this issue from react-navigation/drawer Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants