2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 9118
|
|
|
|
|
// Function ID: 9119
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useStableSafeAreaInsets
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [32, 19, 1482, 1364, 1625, 1613, 9119, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: default, getStableSafeAreaInsets
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 9118 (useStableSafeAreaInsets)
|
2026-09-26 08:31:33 +00:00
|
|
|
import AppEntryKeyContext from "AppEntryKeyContext" /* 1482 */;
|
|
|
|
|
import useSafeAreaInsets from "useSafeAreaInsets" /* 1613 */;
|
|
|
|
|
import NativeSafeAreaInsetsModuleDefault from "NativeSafeAreaInsetsModule" /* 1625 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import subscribeToSafeAreaInsetsDefault from "subscribeToSafeAreaInsets" /* 9119 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/safe_area/useStableSafeAreaInsets.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useStableSafeAreaInsets() {
|
2026-09-26 08:31:33 +00:00
|
|
|
appEntryKey = appEntryKey(1482).useAppEntryKey();
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp2 = _slicedToArray(noop.useState(() => {
|
2026-07-29 08:29:29 +00:00
|
|
|
let DEFAULT_APP_ENTRY_KEY = appEntryKey;
|
|
|
|
|
if (appEntryKey === undefined) {
|
2026-09-10 05:38:07 +00:00
|
|
|
DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let stableSafeAreaInsets = NativeSafeAreaInsetsModuleDefault.getStableSafeAreaInsets(DEFAULT_APP_ENTRY_KEY);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
stableSafeAreaInsets = useSafeAreaInsets.getSafeAreaInsets(DEFAULT_APP_ENTRY_KEY);
|
|
|
|
|
const tmp3Result = useSafeAreaInsets;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return stableSafeAreaInsets;
|
|
|
|
|
}), 2);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_1 = tmp2[1];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [appEntryKey];
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect = noop.useEffect(() => subscribeToSafeAreaInsetsDefault(() => {
|
|
|
|
|
let DEFAULT_APP_ENTRY_KEY = closure_1_0;
|
|
|
|
|
if (closure_1_0 === undefined) {
|
2026-09-26 08:31:33 +00:00
|
|
|
DEFAULT_APP_ENTRY_KEY = appEntryKey(1482).DEFAULT_APP_ENTRY_KEY;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-09-26 08:31:33 +00:00
|
|
|
let stableSafeAreaInsets = closure_1(1625).getStableSafeAreaInsets(DEFAULT_APP_ENTRY_KEY);
|
|
|
|
|
const obj3 = closure_1(1625);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-09-26 08:31:33 +00:00
|
|
|
stableSafeAreaInsets = appEntryKey(1613).getSafeAreaInsets(DEFAULT_APP_ENTRY_KEY);
|
|
|
|
|
const tmp4Result = appEntryKey(1613);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_1_1(stableSafeAreaInsets);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, appEntryKey), items);
|
|
|
|
|
return tmp2[0];
|
|
|
|
|
};
|
2026-07-29 08:29:29 +00:00
|
|
|
export const getStableSafeAreaInsets = function getStableSafeAreaInsets(DEFAULT_APP_ENTRY_KEY) {
|
|
|
|
|
if (DEFAULT_APP_ENTRY_KEY === undefined) {
|
2026-09-10 05:38:07 +00:00
|
|
|
DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let stableSafeAreaInsets = NativeSafeAreaInsetsModuleDefault.getStableSafeAreaInsets(DEFAULT_APP_ENTRY_KEY);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
stableSafeAreaInsets = useSafeAreaInsets.getSafeAreaInsets(DEFAULT_APP_ENTRY_KEY);
|
|
|
|
|
const tmp3Result = useSafeAreaInsets;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return stableSafeAreaInsets;
|
|
|
|
|
};
|