ealush / emoji-picker-react

The most popular React Emoji Picker
https://ealush.com/emoji-picker-react/
MIT License
991 stars 166 forks source link

Emoji are not appearing properly in Windows Chrome Browser #417

Closed bhupendra1011 closed 1 month ago

bhupendra1011 commented 1 month ago

Hi , I am using emoji-picker-react": "^4.7.1" , on Mac emojis are appearing fine but on windows 10 , chrome (v 122) I get emoji panel as below. : some emojis are empty recangles

image

Using Emoji Picker as below :

  const handleEmojiClick = (emojiObject: {emoji: string; names: string[]}) => {
    setMessage(prev =>
      prev ? prev + '  ' + emojiObject.emoji : emojiObject.emoji,
    );
  };
 <EmojiPicker
        style={styles.emojiPicker}
        onEmojiClick={handleEmojiClick}
        theme={ Theme.dark}
        suggestedEmojisMode={SuggestionMode.RECENT}
        className="chatEmojiPicker"
        lazyLoadEmojis={true}
        previewConfig={{showPreview: false}}
        height={370}
        autoFocusSearch={false}
        emojiStyle={EmojiStyle.NATIVE}
      />

Also when I try to access emoji in handleEmojiClick , some emojis are are appearing smaller without any color and empty rectangles

ealush commented 1 month ago

Unfortunately, this is just how windows renders them. I would recommend picking an alternative emojiStyle (non native) to show images instead of native OS emojis.