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?
Thanks goes to these wonderful people (emoji key):