useWindowDimensions automatically updates all of its values when screen size or font scale changes. You can get your application window’s width and height like so:
Example
Properties
fontScale
height
scale
1which indicates that one point equals one pixel (usually PPI/DPI of 96, 76 on some platforms).2or3which indicates a Retina or high DPI display.
width
useKeplerWindowDimensionsis the preferred API for React Native for Vega version 2 applications. UnlikeuseWindowDimensions, it updates when any application component’s window dimensions update.

