40 lines
1.5 KiB
TypeScript
40 lines
1.5 KiB
TypeScript
// Module ID: 12448
|
|
// Function ID: 12449
|
|
// Name: openCustomKeyboard
|
|
// Dependencies: [1501, 6726, 4988, 11952, 2]
|
|
// Exports: default
|
|
|
|
// Module 12448 (openCustomKeyboard)
|
|
import KeyboardUIStore from "KeyboardUIStore" /* 1501 */;
|
|
import PortalKeyboardUIStore from "PortalKeyboardUIStore" /* 4988 */;
|
|
import RunAfterInteractionsUtils from "RunAfterInteractionsUtils" /* 6726 */;
|
|
import ChatInputNativeCommandsDefault from "ChatInputNativeCommands" /* 11952 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/keyboard/native/openCustomKeyboard.android.tsx");
|
|
|
|
export default function openCustomKeyboard(secondaryTextFieldRef) {
|
|
let keyboardParams;
|
|
let ref;
|
|
let ref2;
|
|
({ channelId: require, chatInputRef: importDefault, chatInputNativeRef: dependencyMap, keyboardParams } = secondaryTextFieldRef);
|
|
secondaryTextFieldRef = secondaryTextFieldRef.secondaryTextFieldRef;
|
|
let obj = KeyboardUIStore;
|
|
obj.setKeyboardType(keyboardParams);
|
|
let obj2 = RunAfterInteractionsUtils;
|
|
obj2.runAfterInteractions(() => {
|
|
const current = importDefault.current;
|
|
current.blur();
|
|
const tmp = importDefault;
|
|
if (secondaryTextFieldRef != null) {
|
|
const current2 = secondaryTextFieldRef.current;
|
|
if (current2 != null) {
|
|
current2.blur();
|
|
}
|
|
}
|
|
const obj = PortalKeyboardUIStore;
|
|
obj.openPortalKeyboard(keyboardParams.type, require, tmp);
|
|
const obj2 = ChatInputNativeCommandsDefault;
|
|
obj2.openCustomKeyboard(dependencyMap.current);
|
|
});
|
|
};
|