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

You can open a sidemenu from the sidemenu

Open wmonecke opened this issue 6 years ago • 1 comments

First off, thank you for making this!!

However, I have some issues that I might have not expected.

Is this behavior expected? I can basically swipe right while having the side menu open and it will open another component.

Also the sidemenu content overlaps with the main component. Is that the default behavior?

EDIT: I fixed the content overlapping by giving the main component a style of backgorundColor: 'white'. Still feels a bit hacky.

jul-22-2017 15-08-36

wmonecke avatar Jul 22 '17 12:07 wmonecke

Hey @wmonecke!

First of all, you're very welcome! 😉 Also, it wasn't only me, I think its worth to thank React Native community in general, I only started this project.

Regarding background: I see it brings quite some confusion, although not sure if its bad or good: I don't want to enforce any kind of styles on the content view - its up to you if you want a transparent content view or not, not sure if we should change it.

Regarding swipe left: in iOS there is default gesture called "swipe back". If your view (which contains side menu component) is not the first element of the stack, you can always swipe back. Thats why in my apps I use resetTo-like methods to set a "main screen" which contains side menu. So, if you experience this issue after login screen (for example), try to use replace instead of push to solve the issue.

Please, let me know if that addresses all your issues 😉

Kureev avatar Jul 22 '17 21:07 Kureev