Explore Library
Code QuizIntermediate

Reading Route Params

Find the error in accessing params on the destination screen.

Codejavascript
function DetailsScreen({ navigation, route }) {
  const { itemId } = navigation.params;
  return <Text>Item: {itemId}</Text>;
}

What is the bug in this code?