Replace a Screen Using React Navigation
Spencer Carli
1506

Thank you for making this video tutorial! This is great! Just wanted to note that creating the new router object didn’t work for me. But mutating the router object and replacing only getStateForAction did work for me.

`HomeStack.router.getStateForAction = (action, state) => { … }`