useKeplerWindowDimensionsV2 returns an array of DisplayMetricsKepler entries for each surface that currently exists.
DisplayMetricsVega Type:
useKeplerWindowDimensionsV2 automatically updates values when any surface’s size changes. You can get a surface
window’s width and height like so:
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 Vega v2
height Vega v2
scale Vega v2
A value of1indicates PPI/DPI of 96 (76 on some platforms).2indicates a Retina or high DPI display.

