dmhood
dmhood
who is this guy? :grinning: :+1:
Looks like its working, thanks!
FWIW if anyone is using redux, you can do: ```javascript function getCurrentRoute (state) { if (state.routes) { return getCurrentRoute(state.routes[state.index]); } return state; } const navReducer = (state, action) => {...
There is some discussion on the reactiflux discord server (https://www.reactiflux.com/), specifically in the rn-navigation channel, although I don't think its specifically for this library.
Isn't the proper way to do this: ```javascript componentDidMount () { const isDisabled = ; const params = { right: ( !isDisabled ? this.onSave() : null} > Save ), };...
Thought I would post my main navigation options too for completness sake: ```javascript function getCurrentParams (state) { if (state.routes) { return getCurrentParams(state.routes[state.index]); } return state.params || {}; } ...some setup......
If people find that useful then I'll make a pr here in the next couple of days, and we can standardize/critique it there.
FWIW using setParams in componentDidMount is apparently discouraged, (see #296). I've mostly gone to pulling most of the "initial state" logic to set header buttons out into static/helper functions, which...
@raymundtusk7 you can't call this.saveDetails() from a static context since the actual saveDetails method is a class method. You would need to make saveDetails static or just some helper function...
This is a problem for me as well, except it seems to get my app into a weird state where it "routes back" but everything is unresponsive. FWIW having: componentDidMount...