how to navigate.pop 2 back 2 screens react navigation code example
Example: react native navigate two screens back
navigation.pop(n);
// n = number of screens to go back.
navigation.pop(n);
// n = number of screens to go back.