UNPKG

react-native-safe-area-context

Version:

A flexible way to handle safe area, also works on Android and web.

11 lines (8 loc) 344 B
import type { Metrics } from './SafeArea.types'; import NativeSafeAreaContext from './specs/NativeSafeAreaContext'; export const initialWindowMetrics = (NativeSafeAreaContext?.getConstants?.() ?.initialWindowMetrics ?? null) as Metrics | null; /** * @deprecated */ export const initialWindowSafeAreaInsets = initialWindowMetrics?.insets;