48 lines
1.6 KiB
TypeScript
48 lines
1.6 KiB
TypeScript
// Module ID: 1890
|
|
// Function ID: 1891
|
|
// Name: dismissGlobalKeyboard
|
|
// Dependencies: [17, 1234, 1891, 2]
|
|
// Exports: clearCurrentFocusAndDismissKeyboard, dismissGlobalKeyboard, onKeyboardChanged
|
|
|
|
// Module 1890 (dismissGlobalKeyboard)
|
|
import set from "set" /* 2 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import enforcingDefault from "enforcing" /* 1891 */;
|
|
|
|
const NativeModules = get_ActivityIndicator.NativeModules;
|
|
let result = set.fileFinishedImporting("utils/native/KeyboardManagerUtils.tsx");
|
|
|
|
export const dismissGlobalKeyboard = function dismissGlobalKeyboard() {
|
|
if (obj.isAndroid()) {
|
|
const obj2 = enforcingDefault;
|
|
if (obj2 != null) {
|
|
const result = obj2.dismissGlobalKeyboard();
|
|
}
|
|
} else {
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
|
const result1 = KeyboardManager.dismissGlobalKeyboard();
|
|
}
|
|
};
|
|
export const clearCurrentFocusAndDismissKeyboard = function clearCurrentFocusAndDismissKeyboard() {
|
|
if (obj.isAndroid()) {
|
|
const obj2 = enforcingDefault;
|
|
if (obj2 != null) {
|
|
const result = obj2.clearCurrentFocusAndDismissKeyboard();
|
|
}
|
|
}
|
|
};
|
|
export const onKeyboardChanged = function onKeyboardChanged(open) {
|
|
if (obj.isAndroid()) {
|
|
const obj2 = enforcingDefault;
|
|
if (obj2 != null) {
|
|
obj2.onKeyboardChanged(open);
|
|
}
|
|
} else {
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
|
const onKeyboardChanged = KeyboardManager.onKeyboardChanged;
|
|
if (onKeyboardChanged != null) {
|
|
open = globalThis.open;
|
|
onKeyboardChanged(globalThis.open);
|
|
}
|
|
}
|
|
};
|