2026-08-06 08:05:19 +00:00
|
|
|
// Module ID: 1872
|
|
|
|
|
// Function ID: 1873
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: dismissGlobalKeyboard
|
2026-08-06 08:05:19 +00:00
|
|
|
// Dependencies: [17, 500, 1873, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: clearCurrentFocusAndDismissKeyboard, dismissGlobalKeyboard, onKeyboardChanged
|
|
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
// Module 1872 (dismissGlobalKeyboard)
|
2026-07-23 10:11:24 +00:00
|
|
|
import { NativeModules } from "get ActivityIndicator";
|
|
|
|
|
|
|
|
|
|
let result = require("enforcing").fileFinishedImporting("utils/native/KeyboardManagerUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const dismissGlobalKeyboard = function dismissGlobalKeyboard() {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-06 08:05:19 +00:00
|
|
|
const obj2 = importDefault(1873);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
const result = obj2.dismissGlobalKeyboard();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
|
|
|
|
const result1 = KeyboardManager.dismissGlobalKeyboard();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const clearCurrentFocusAndDismissKeyboard = function clearCurrentFocusAndDismissKeyboard() {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-06 08:05:19 +00:00
|
|
|
const obj2 = importDefault(1873);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
const result = obj2.clearCurrentFocusAndDismissKeyboard();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const onKeyboardChanged = function onKeyboardChanged(open) {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-06 08:05:19 +00:00
|
|
|
const obj2 = importDefault(1873);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
obj2.onKeyboardChanged(open);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-07-20 16:05:17 +00:00
|
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
2026-07-29 08:29:29 +00:00
|
|
|
const onKeyboardChanged = KeyboardManager.onKeyboardChanged;
|
|
|
|
|
if (onKeyboardChanged != null) {
|
|
|
|
|
open = globalThis.open;
|
|
|
|
|
onKeyboardChanged(globalThis.open);
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|