In react-navigation v5, I have 2 stacks and I navigate from one stack to another stack.
How can you navigate or "go back" to the screen in the previous stack?
In react-navigation v5, I have 2 stacks and I navigate from one stack to another stack.
How can you navigate or "go back" to the screen in the previous stack?
Use the navigation prop to go back to the previous stack screen.
this.props.navigation.goBack()
Check out the Office Doc for more options- https://reactnavigation.org/docs/navigation-prop