24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
// Metro module 1847 (f1848).
|
|
import { useAppEntryKey, DEFAULT_APP_ENTRY_KEY } from "../../window/native/AppEntryKeyContext";
|
|
import KeyboardUIStore_native from "./KeyboardUIStore.native";
|
|
let c1558_3 = {
|
|
excludeSafeAreaInsets: false
|
|
};
|
|
export default function useSystemKeyboardHeight(r2 = c1558_3) {
|
|
let excludeSafeAreaInsets = r2.excludeSafeAreaInsets;
|
|
if (excludeSafeAreaInsets === void 0) {
|
|
excludeSafeAreaInsets = false;
|
|
}
|
|
let c13259_0 = excludeSafeAreaInsets;
|
|
const appEntryKey = useAppEntryKey();
|
|
return KeyboardUIStore_native((a0) => {
|
|
const r4 = a0.byAppEntry[appEntryKey];
|
|
return c13259_0 ? r4.keyboardHeightExcludingSafeAreaInsets : r4.keyboardHeight;
|
|
});
|
|
};
|
|
export function getSystemKeyboardHeight(r4 = c1558_3) {
|
|
const { excludeSafeAreaInsets = false, appEntryKey: appEntryKey2 = DEFAULT_APP_ENTRY_KEY } = r4;
|
|
const r17 = KeyboardUIStore_native.getState().byAppEntry[appEntryKey2];
|
|
return excludeSafeAreaInsets ? r17.keyboardHeightExcludingSafeAreaInsets : r17.keyboardHeight;
|
|
}
|