2026-10-06 22:12:49 +00:00
|
|
|
// Module ID: 1882
|
|
|
|
|
// Function ID: 1883
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: KeyboardManagerUtils
|
2026-10-06 22:12:49 +00:00
|
|
|
// Dependencies: [17, 1370, 1883, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
// Exports: clearCurrentFocusAndDismissKeyboard, dismissGlobalKeyboard, onKeyboardChanged
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
// Module 1882 (KeyboardManagerUtils)
|
|
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import PlatformUtils from "PlatformUtils" /* 1370 */;
|
|
|
|
|
import react_nativeDefault from "react-native" /* 1883 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
const NativeModules = react_native.NativeModules;
|
2026-09-18 20:18:48 +00:00
|
|
|
let result = size.fileFinishedImporting("utils/native/KeyboardManagerUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const dismissGlobalKeyboard = function dismissGlobalKeyboard() {
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj = PlatformUtils;
|
2026-09-18 20:18:48 +00:00
|
|
|
if (obj.isAndroid()) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj2 = react_nativeDefault;
|
2026-09-18 20:18:48 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
const result = obj2.dismissGlobalKeyboard();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
|
|
|
|
const result1 = KeyboardManager.dismissGlobalKeyboard();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const clearCurrentFocusAndDismissKeyboard = function clearCurrentFocusAndDismissKeyboard() {
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj = PlatformUtils;
|
2026-09-18 20:18:48 +00:00
|
|
|
if (obj.isAndroid()) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj2 = react_nativeDefault;
|
2026-09-18 20:18:48 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
const result = obj2.clearCurrentFocusAndDismissKeyboard();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const onKeyboardChanged = function onKeyboardChanged(open) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj = PlatformUtils;
|
2026-09-18 20:18:48 +00:00
|
|
|
if (obj.isAndroid()) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj2 = react_nativeDefault;
|
2026-09-18 20:18:48 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
obj2.onKeyboardChanged(open);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
|
|
|
|
const onKeyboardChanged = KeyboardManager.onKeyboardChanged;
|
|
|
|
|
if (onKeyboardChanged != null) {
|
|
|
|
|
open = globalThis.open;
|
|
|
|
|
onKeyboardChanged(globalThis.open);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|