decord/stable/source/modules/keyboard/native/useSystemKeyboardHeight.native.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

42 lines
1.5 KiB
TypeScript

// Module ID: 1878
// Function ID: 1879
// Name: useSystemKeyboardHeight
// Dependencies: [1481, 1482, 2]
// Exports: default, getSystemKeyboardHeight
// Module 1878 (useSystemKeyboardHeight)
import AppEntryKeyContext from "AppEntryKeyContext" /* 1481 */;
import KeyboardUIStoreDefault from "KeyboardUIStore" /* 1482 */;
import size from "module_2" /* 2 */;
let closure_3 = { excludeSafeAreaInsets: false };
const result = size.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;
}
closure_1 = AppEntryKeyContext.useAppEntryKey();
return KeyboardUIStoreDefault((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 = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY;
}
const tmp4 = KeyboardUIStoreDefault.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY];
return flag ? tmp4.keyboardHeightExcludingSafeAreaInsets : tmp4.keyboardHeight;
};