create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
19 lines (15 loc) • 504 B
text/typescript
import { UIManager } from 'react-native';
import { Metrics } from './SafeArea.types';
const RNCSafeAreaProviderConfig = UIManager.getViewManagerConfig(
'RNCSafeAreaProvider',
) as any;
export const initialWindowMetrics = (
RNCSafeAreaProviderConfig != null &&
RNCSafeAreaProviderConfig.Constants != null
? RNCSafeAreaProviderConfig.Constants.initialWindowMetrics
: null
) as Metrics | null;
/**
* @deprecated
*/
export const initialWindowSafeAreaInsets = initialWindowMetrics?.insets;