InitialWindowSafeAreaInsets.ts 401B

123456789101112
  1. import { UIManager } from 'react-native';
  2. import { EdgeInsets } from './SafeArea.types';
  3. const RNCSafeAreaViewConfig = UIManager.getViewManagerConfig(
  4. 'RNCSafeAreaView',
  5. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  6. ) as any;
  7. export default (RNCSafeAreaViewConfig.Constants != null
  8. ? RNCSafeAreaViewConfig.Constants.initialWindowSafeAreaInsets
  9. : null) as EdgeInsets | null;