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

Bug on Orientation Change #12

Open
gitlovenotwar opened this issue Jun 16, 2017 · 3 comments
Open

Bug on Orientation Change #12

gitlovenotwar opened this issue Jun 16, 2017 · 3 comments

Comments

@gitlovenotwar
Copy link

There's a bug when the orientation changes, the drawer always shown. Here are some screenshots.

portrait_normal:
portrait_drawer_close

Here's it it after changing orientation
landscape_normal:
landscape_drawer_close

@gitlovenotwar
Copy link
Author

P.S. I am able to solve of it with custom styles with having drawer: { width: same as width of drawerWidth in the props). It should set automatically for drawer style in drawerWidth props(if there's none provided in style) to avoid this bug. Thanks.

@dimblek7
Copy link

This issue is caused from device width given to the drawer....
I was able to solve the issue for tablets...
Please refer following attachments to have a drawer with orientation support.

How to use:

  1. replace your index.js file inside 'react-native-drawer-menu' > Drawer

index.js.zip

@rezaarifian
Copy link

Still not working for me, If orientation on same Page.
Because 'react-native-drawer-menu' > Drawer need update trigger to change

const width=(Dimensions.get('window').width > Dimensions.get('window').height) ? Dimensions.get('window').height : Dimensions.get('window').width;

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

3 participants