This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,19 @@
// Metro module 11207 (f11208).
import { setKeyboardType } from "./KeyboardUIStore.native";
import { runAfterInteractions } from "../../../utils/native/RunAfterInteractionsUtils";
import { openPortalKeyboard } from "./PortalKeyboardUIStore.native";
import ChatInputNativeCommands from "../../chat_input/native/ChatInputNativeCommands";
export default function openCustomKeyboard({ channelId, chatInputRef, chatInputNativeRef, keyboardParams, secondaryTextFieldRef }) {
setKeyboardType(keyboardParams);
runAfterInteractions(() => {
chatInputRef.current.blur();
if (secondaryTextFieldRef != null) {
const current = secondaryTextFieldRef.current;
if (current != null) {
current.blur();
}
}
openPortalKeyboard(keyboardParams.type, channelId, chatInputRef);
ChatInputNativeCommands.openCustomKeyboard(chatInputNativeRef.current);
});
};