decord/source/modules/keyboard/native/useSystemKeyboardHeight.native.tsx

40 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 1895
// Function ID: 1896
2026-07-20 16:05:17 +00:00
// Name: useSystemKeyboardHeight
2026-08-15 05:55:55 +00:00
// Dependencies: [1497, 1498, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getSystemKeyboardHeight
2026-08-15 05:55:55 +00:00
// Module 1895 (useSystemKeyboardHeight)
2026-07-20 16:05:17 +00:00
let closure_3 = { excludeSafeAreaInsets: false };
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/keyboard/native/useSystemKeyboardHeight.native.tsx");
2026-07-20 16:05:17 +00:00
export default function useSystemKeyboardHeight() {
let tmp = arg0;
if (arg0 === undefined) {
tmp = closure_3;
}
let flag = tmp.excludeSafeAreaInsets;
if (flag === undefined) {
flag = false;
}
let importDefault;
2026-08-15 05:55:55 +00:00
importDefault = flag(1497).useAppEntryKey();
return importDefault(1498)((arg0) => flag ? arg0.byAppEntry[closure_1].keyboardHeightExcludingSafeAreaInsets : arg0.byAppEntry[closure_1].keyboardHeight);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
export const getSystemKeyboardHeight = function getSystemKeyboardHeight(arg0) {
2026-07-20 16:05:17 +00:00
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) {
2026-08-15 05:55:55 +00:00
DEFAULT_APP_ENTRY_KEY = require(1497) /* context */.DEFAULT_APP_ENTRY_KEY;
2026-07-20 16:05:17 +00:00
}
2026-08-15 05:55:55 +00:00
const tmp4 = importDefault(1498).getState().byAppEntry[DEFAULT_APP_ENTRY_KEY];
2026-07-20 16:05:17 +00:00
return flag ? tmp4.keyboardHeightExcludingSafeAreaInsets : tmp4.keyboardHeight;
};