react-native-drawer-menu icon indicating copy to clipboard operation
react-native-drawer-menu copied to clipboard

Bug on Orientation Change

Open gitlovenotwar opened this issue 7 years ago • 3 comments

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 avatar Jun 16 '17 04:06 gitlovenotwar

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.

gitlovenotwar avatar Jun 16 '17 04:06 gitlovenotwar

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

dimblek7 avatar Nov 21 '17 04:11 dimblek7

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;

rezaarifian avatar Oct 12 '18 09:10 rezaarifian