React Native Router Flux Drawer

Viewed 2211

I am trying to change the state of my app when the drawer is opened. onEnter and onOpen don't trigger at all.

I am using a custom NavBar so the hamburger button isn't being displayed but if i swipe left on my IOS device the drawer opens.

So how can i detect when the drawer is open?

1 Answers

You have multiple choices!

  1. Pass this.props.open and check this on componentWillReceiveProps and after that :

    Actions.refresh({key: "drawer", open: true})

    • Same issue is here

    • Some more data that is good for your problem here

    • Drawer in router flux provided by React Navigation so it's better that you see this documentation

    • react native router flux drawer added in v4 so maybe have a some bug now!

  2. Use another drawer (I recommended to you this)

Related