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

Drawer becomes narrower on subsequent opening

Open daveteu opened this issue 6 years ago • 5 comments

If you toggle the menu open again and again, somehow the content becomes narrower.

shopbecomesnarrower

daveteu avatar Jun 19 '18 08:06 daveteu

Im facing this issue as well, did you find a solution ?

YazeedAsaad avatar Aug 01 '18 15:08 YazeedAsaad

Same here, i feel like i've tried everything and can't figure it out

slimtone avatar Aug 14 '18 21:08 slimtone

Same thing started to happen after update to React Native v0.55.4 from v0.51.0 I'm using the latest 0.2.5 version of the library.

Have you been able to work around this issue? @daveteu @YazeedAsaad @slimtone

skrovina avatar Sep 26 '18 12:09 skrovina

Facing the same problem here....

fivenp avatar Oct 04 '18 09:10 fivenp

After a quick try/error it seems like https://github.com/Tinysymphony/react-native-drawer-menu/blob/master/Drawer/index.js#L366 is causing this...

A "simple" this.styles.main.style.right = -dx.toFixed(3); turns out to fix my issue completely

Apparently react-native doesn't like more then 3 digits behind a number on right:-

fivenp avatar Oct 04 '18 13:10 fivenp