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