I\'ve got a problem with the navigation of React Navigation and React Native. It is about resetting navigation and returning to the home screen.
I\'ve build a StackN
The pop action takes you back to a previous screen in the stack. The n param allows you to specify how many screens to pop back by.
n - number - The number of screens to pop back by.
import { StackActions } from 'react-navigation';
const popAction = StackActions.pop({ n: 1, });
this.props.navigation.dispatch(popAction);