Explore Library
Code QuizIntermediate

replace vs navigate

Find why the login screen stays in the back stack after auth.

Codejavascript
function LoginScreen({ navigation }) {
  const onLogin = () => {
    navigation.navigate('Home');
  };
  // After login, pressing back returns to Login again
}

How should this be fixed so Login is removed from the stack?