Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does onEmojiSelect work with the custom emojis? #905

Open
0xrushi opened this issue Mar 26, 2024 · 0 comments
Open

How does onEmojiSelect work with the custom emojis? #905

0xrushi opened this issue Mar 26, 2024 · 0 comments

Comments

@0xrushi
Copy link

0xrushi commented Mar 26, 2024

I have a list of custom emojis like

export const emojiList = [
  {
    id: "7285",
    name: "7285",
    emojis: [
      {
        id: "7285",
        name: "Kekwait",
        keywords: ["7285"],
        skins: [{ src: "resized_emojis/7285/7285-kekwait.png" }],
      },
      {
        id: "7285",
        name: "Kekwait",
        keywords: ["7285"],
        skins: [{ src: "resized_emojis/7285/7285-kekwait.png" }],
      },
    ],
  },
  {
    id: "9879",
    name: "9879",
    emojis: [
      {
        id: "9879",
        name: "Pepe",
        keywords: ["9879"],
        skins: [{ src: "resized_emojis/9879/9879_pepe_kek.gif" }],
      },
      {
        id: "9879",
        name: "Pepe",
        keywords: ["9879"],
        skins: [{ src: "resized_emojis/9879/9879_pepe_kek.gif" }],
      },
    ],
  }];

and I have onEmojiSelect = setMessage((prevMessage) => ${prevMessage}${emojiObject.native});

but that only works for default emojis not the custom ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant