React本地文本输入将重点
我正在与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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论