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