Skip to content

Emoji name #27

@IGOLz

Description

@IGOLz

I tryed using emoji-dictionary to get the emoji name and print it in this component like so:

import { EmojiProvider, Emoji } from "react-apple-emojis";
import emojiData from "react-apple-emojis/src/data.json";

import emojiDictionary from "emoji-dictionary";

<EmojiProvider data={emojiData}>
    <Emoji name={emojiDictionary.getName(emoji)} width={32} />
</EmojiProvider>

But the names are not matching the names in this library.

Any suggestion on how to get the emoji name from the emoji itself and use the library to print the emoji?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions