React-native:打开表情符号键盘 [英] React-native : Opening emoji keyboard

查看:166
本文介绍了React-native:打开表情符号键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用react-native编写一个小型聊天应用程序,我想知道是否可以将键盘打开为默认的表情符号电话键盘(并轻松地切换到常规文本)。

I'm writting a small chat app in react-native, and i'm wondering if it's possible to open the keyboard as the default emoji phone keyboard (and switching to the regular text one easly).

对于iPhone用户来说,表情符号相当容易使用,但是在android上,从文本键盘切换到表情符号键盘并不是那么容易。我想在文字输入旁添加按钮,以方便地从一个键盘切换到另一个键盘。

For iphone user, emoji are rather accessible, but on android, it's not so easy to switch from text keyboard to emoji keyboard. I'd like to add to button near the text input to easly switch from one keyboard to another.

据我了解,这在Iphone上是不可能的,但在Android上可以吗?

As i understand, it is not possible on Iphone, but is it on Android ?

有什么想法吗?

推荐答案

尝试此操作,只需安装此依赖项即可直接使用表情符号键盘,

Try This ,just install this dependency to use emoji keyboard directly,

< a href = https://github.com/liangl1412/react-native-emoji-keyboard rel = nofollow noreferrer>此

在此库中,您将能够使用与表情符号键盘相关的许多道具

In this library, you will able to use many props related to emoji keyboard

这篇关于React-native:打开表情符号键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆