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