11 lines
491 B
TypeScript
11 lines
491 B
TypeScript
// Metro module 1581 (f1582).
|
|
import { useAppEntryKey, DEFAULT_APP_ENTRY_KEY } from "../window/native/AppEntryKeyContext";
|
|
import SafeAreaStore_native from "./SafeAreaStore.native";
|
|
export default function useSafeAreaInsets() {
|
|
const appEntryKey = useAppEntryKey();
|
|
return SafeAreaStore_native((a0) => a0.byAppEntry[appEntryKey].safeAreaInsets);
|
|
};
|
|
export function getSafeAreaInsets(r2 = DEFAULT_APP_ENTRY_KEY) {
|
|
return SafeAreaStore_native.getState().byAppEntry[r2].safeAreaInsets;
|
|
}
|