React native emoji selector emojis not appearing
Solution 1:
I also got the same problem in Android, then I had to switch to different library and the one which worked for me was this one: rn-emoji-keyboard
.
A simple example of its usage:
import EmojiPicker from 'rn-emoji-keyboard';
const YourComponent = () => {
const [input, setInput] = useState(null);
const [emojiPicker, setEmojiPicker] = useState(false);
{emojiPicker &&
<EmojiPicker
onEmojiSelected={emojiObject =>
setInput(emojiObject.emoji)
}
open={emojiPicker}
onClose={() => setEmojiPicker(false)}
/>}
}
More can be found here: https://github.com/TheWidlarzGroup/rn-emoji-keyboard#:~:text=rn-emoji-keyboard%20A%20lightweight%2C%20fully%20customizable%20emoji%20picker%2C%20written,elements%29.%20Designated%20to%20be%20user%20and%20developer%20friendly%21