UNPKG

expo-dev-menu

Version:

Expo/React Native module with the developer menu.

14 lines (10 loc) 438 B
import { requireNativeModule } from 'expo-modules-core'; import { Metrics } from './SafeArea.types'; const RNCSafeAreaProviderConstants = requireNativeModule('RNCSafeAreaProvider'); export const initialWindowMetrics = ( RNCSafeAreaProviderConstants != null ? RNCSafeAreaProviderConstants.initialWindowMetrics : null ) as Metrics | null; /** * @deprecated */ export const initialWindowSafeAreaInsets = initialWindowMetrics?.insets;