Skip to main content

initialWindowMetrics

Insets and frame of the window on initial render. This can be used with the initialMetrics from SafeAreaProvider. See optimization for more information.

Object with:

{
frame: { x: number, y: number, width: number, height: number },
insets: { top: number, left: number, right: number, bottom: number },
verticalCornerAdaptedInsets: { top: number, left: number, right: number, bottom: number },
horizontalCornerAdaptedInsets: { top: number, left: number, right: number, bottom: number },
}

verticalCornerAdaptedInsets and horizontalCornerAdaptedInsets are the window's insets for the cornerAdaptation option of useSafeAreaInsets.

NOTE: This value can be null or out of date as it is computed when the native module is created.