Explore Library
Code QuizIntermediate

Going Back with goBack

Identify why the back button does nothing when pressed.

Codejavascript
function DetailsScreen({ navigation }) {
  return (
    <Button
      title="Go Back"
      onPress={navigation.goBack()}
    />
  );
}

What is the bug in this code?