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

drawer position right not working correctly #3180

Closed
arbabi2010 opened this issue Aug 14, 2018 · 5 comments
Closed

drawer position right not working correctly #3180

arbabi2010 opened this issue Aug 14, 2018 · 5 comments

Comments

@arbabi2010
Copy link

arbabi2010 commented Aug 14, 2018

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.24
  • react-native v0.46.4

Expected behaviour

Hi. when I open drawer with position "left" it open and move from left to right and fix in right. actually this not open from right. this is my code
<Scene drawer key="drawer" contentComponent={buy} drawerPosition="left" drawerWidth={350} hideNavBar hideTabBar hideDrawerButton="back" >

Actual behaviour

this open form right

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
1.
2.
3.

@mwskwong
Copy link

OK... I'm confused, do you want the Drawer to appear from the left or right?

@daviscabral
Copy link
Collaborator

Your issue description is confusing.

But it seems this is the expected behavior.

Here is the code from Example folder using the most recent version:
Image from Gyazo

Please, try it like is there and in case you are still having issues, reopen this ticket.

@arbabi2010
Copy link
Author

@matthewkwong2 I wanted to open it from right but it had a bug when i was using from genymotion. i use from my mobile device and it's ok right now. thank you.

@tarbundiyahitesh21
Copy link

tarbundiyahitesh21 commented May 29, 2020

drawerPosition='right' not working in reactnavigation library

When i set drawerPostion='left' it's working fine, but when set 'right' then drawer not open from the right side.
any solution

@tristanvandam
Copy link

tristanvandam commented Jun 15, 2020

@tarbundiyahitesh21 I have the exact same issue.
@daviscabral Hope this makes more sense?

When using the default draw navigator, if shows from the left perfectly.
<Drawer.Navigator drawerContent={props => <SideDrawerNavigator {...props} />} ></Drawer.Navigator>

When using drawerPostion='right' screen goes slightly dark but there is no drawer appearing.
<Drawer.Navigator drawerContent={props => <SideDrawerNavigator {...props} />} drawerPostion='right' ></Drawer.Navigator>

It is as if the drawer is starting on the right hand side of the screen and still opening rightwards essentially off the screen.

Note: Version is 5.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants