1

I'm trying to create a drawer menu with React Native Navigation. By default the drawer seems to work only by swiping. I've also tried triggering the drawer with a button. It was all good, but the problem is that I'd like the button (with a hamburger icon) to slide along with the drawer when it is closing/opening. Here are a couple of sketches of what I'd like to see: enter image description hereenter image description here

I tried searching for information but nothing useful came up. The closest I got was this SO post, but in this case the button triggers a new screen to open, not a drawer menu to slide in.

Is this even possible to do, since I couldn't even find anything in the API docs for the DrawerNavigator? If so, any suggestions would be appreciated.

SalysBruoga
  • 875
  • 1
  • 9
  • 21
  • Did you try to put you btn inside the Drawer content? I believe it's shoild be something like ``, but it's just a concept. – Alex Belets Mar 02 '18 at 15:59

0 Answers0