Question · React Native course · Module 1: Your first app

Quiz: Displaying text

Why is this code incorrect: <View>Hello World</View>?

Answer options

  • View cannot have children
  • Text must be inside a <Text> component
  • A style is missing
  • The code is correct
Show the answer

Correct answer:

  • Text must be inside a <Text> component