1import { UIManager } from 'react-native'; 2import { Metrics } from './SafeArea.types'; 3 4const RNCSafeAreaProviderConfig = UIManager.getViewManagerConfig( 5 'RNCSafeAreaProvider', 6) as any; 7 8export const initialWindowMetrics = ( 9 RNCSafeAreaProviderConfig != null && 10 RNCSafeAreaProviderConfig.Constants != null 11 ? RNCSafeAreaProviderConfig.Constants.initialWindowMetrics 12 : null 13) as Metrics | null; 14 15/** 16 * @deprecated 17 */ 18export const initialWindowSafeAreaInsets = initialWindowMetrics?.insets; 19