React本地文本输入将重点

发布于 2025-01-31 12:53:58 字数 331 浏览 3 评论 0原文

我正在与React Native建立聊天应用程序。我有一个表情符号盒,需要在文本输入旁边的表情符号图标时进行显示,而不是键盘。当我想重点关注文本输入以再次打开键盘时,我隐藏了表情符号框。但是它不能如此顺利,以至于键盘打开得太早,并且反应无法按时隐藏表情符号。我需要在键盘打开或文本输入集中之前发生的一些事件。 ”在此处输入图像描述”

I'm building a chat application with React Native. I have an emoji box and need it to be shown instead of keyboard when I press the emoji icon next to the text input. When I want to focus on the text input to open keyboard again, I hide the emoji box. But it does not work so smoothly that keyboard opens too early and React can't hide the emoji box on time. I need some event which occurs before the keyboard opens or before the text input gets focused.enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文