Tinysymphony / react-native-drawer-menu

A drawer component for React Native Application.
MIT License
179 stars 43 forks source link

Drawer becomes narrower on subsequent opening #22

Open daveteu opened 6 years ago

daveteu commented 6 years ago

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

shopbecomesnarrower

YazeedAsaad commented 6 years ago

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

slimtone commented 6 years ago

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

skrovina commented 6 years ago

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

fivenp commented 5 years ago

Facing the same problem here....

fivenp commented 5 years ago

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:-