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:
- const
- { width, height }
- =
- useWindowDimensions();