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