// Metro module 1474 (f1475). import { useMemo } from "react"; import DimensionsStore_android from "./native/DimensionsStore.android"; import { useAppEntryKey } from "../window/native/AppEntryKeyContext"; let c1190_4 = { ignoreKeyboard: false }; export default function useWindowDimensions(r4 = c1190_4) { let ignoreKeyboard = r4.ignoreKeyboard; if (ignoreKeyboard === void 0) { ignoreKeyboard = false; } let c13050_0 = ignoreKeyboard; let appEntryKey4 = r4.appEntryKey; const appEntryKey5 = useAppEntryKey(); if (appEntryKey4 == null) { appEntryKey4 = appEntryKey5; } const appEntryKey = appEntryKey4; return DimensionsStore_android(useMemo(() => { let r4; if (c13050_0) { const appEntryKey3 = appEntryKey; r4 = (a0) => a0.byAppEntry[appEntryKey3].windowDimensionsIgnoringKeyboard; } else { const appEntryKey2 = appEntryKey; r4 = (a0) => a0.byAppEntry[appEntryKey2].windowDimensions; } return r4; }, [ignoreKeyboard, appEntryKey])); }; export function getWindowDimensions(r4 = c1190_4) { const { ignoreKeyboard = false, appEntryKey: appEntryKey4 = "main" } = r4; const r10 = DimensionsStore_android.getState().byAppEntry[appEntryKey4]; return ignoreKeyboard ? r10.windowDimensionsIgnoringKeyboard : r10.windowDimensions; }