useKeplerWindowDimensions returns an array of DisplayMetricsKepler entries for each surface that currently exists.
DisplayMetricsKepler Type:
useKeplerWindowDimensions automatically updates values when any surface’s size changes. To get a surface window’s width and height use the width and height properties:
moduleName property for each entry matches the AppRegistry name for the app component that corresponds to a surface.
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
A value of1indicates PPI/DPI of 96 (76 on some platforms).2indicates a Retina or high DPI display.

