decord/source/modules/keyboard/native/useSystemKeyboardHeight.native.tsx
2026-09-02 09:53:35 +00:00

43 lines
1.5 KiB
TypeScript

// Module ID: 1893
// Function ID: 1894
// Name: useSystemKeyboardHeight
// Dependencies: [1495, 1496, 2]
// Exports: default, getSystemKeyboardHeight
// Module 1893 (useSystemKeyboardHeight)
import set from "set" /* 2 */;
import context from "context" /* 1495 */;
import computeEntryStateDefault from "computeEntryState" /* 1496 */;
let closure_3 = { excludeSafeAreaInsets: false };
const result = set.fileFinishedImporting("modules/keyboard/native/useSystemKeyboardHeight.native.tsx");
export default function useSystemKeyboardHeight() {
let tmp = arg0;
if (arg0 === undefined) {
tmp = closure_3;
}
let flag = tmp.excludeSafeAreaInsets;
if (flag === undefined) {
flag = false;
}
importDefault = undefined;
importDefault = flag(1495).useAppEntryKey();
return computeEntryStateDefault((arg0) => flag ? arg0.byAppEntry[closure_1].keyboardHeightExcludingSafeAreaInsets : arg0.byAppEntry[closure_1].keyboardHeight);
};
export const getSystemKeyboardHeight = function getSystemKeyboardHeight(arg0) {
let tmp = arg0;
if (arg0 === undefined) {
tmp = closure_3;
}
let flag = tmp.excludeSafeAreaInsets;
if (flag === undefined) {
flag = false;
}
let DEFAULT_APP_ENTRY_KEY = tmp.appEntryKey;
if (DEFAULT_APP_ENTRY_KEY === undefined) {
DEFAULT_APP_ENTRY_KEY = context.DEFAULT_APP_ENTRY_KEY;
}
const tmp4 = computeEntryStateDefault.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY];
return flag ? tmp4.keyboardHeightExcludingSafeAreaInsets : tmp4.keyboardHeight;
};