Put in order · React Native course · Module 2: Lists and styles

useWindowDimensions

Arrange the correct usage of the useWindowDimensions hook:

Items to put in order

  • =
  • { width, height }
  • const
  • useWindowDimensions();
Show the answer

Correct order:

  1. const
  2. { width, height }
  3. =
  4. useWindowDimensions();