useKeplerWindowDimensionsV2 returns the DisplayMetricsKepler entry for each surface that currently exists.
DisplayMetricsKepler Type:
useKeplerWindowDimensionsV2 automatically updates values when the size of any surface changes.
The following example shows how to get a surface window’s width and height:
Example
- The useDimensions hook from the community React native hooks library aims to make handling screen/window size changes easier to work with.
- React Native Responsive Dimensions also comes with responsive hooks.
Properties
fontScale
height
scale
1 indicates PPI/DPI of 96 (76 on some platforms). 2 indicates a Retina or high DPI display.

