useWindowDimensions automatically updates the width and height values when the screen is resized. You can get the width and height of the application window like this:
const windowWidth = useWindowDimensions().width
const windowHeight = useWindowDimensions().height
This is usually necessary in order to make the properties dynamic.
What is the name of the hook for determining the value of the width and height when the screen is resized?
To see how well you learned this lesson, take the test in the mobile application of our school on this topic or in the telegram bot.
Thanks goes to these wonderful people (emoji key):