Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
42 lines
1.5 KiB
TypeScript
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;
|
|
};
|