missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.67k stars 835 forks source link

Set Frequently used emojis #847

Open Micka91 opened 1 year ago

Micka91 commented 1 year ago

Hello, would it be possible to add a function or something that allows us to modify the frequently used emojis after the Picker has been initialized?

I've tried to modify the values in localStorage, but they're only taken into account once the page has been refreshed.

I also attempted to add a key that is modified each time the Picker is opened in order to force a re-render, but this seems to have no effect.

I use the following versions:

"emoji-mart": "^5.5.2", "@emoji-mart/data": "^1.1.2", "@emoji-mart/react": "^1.1.1",

  <Picker
      key={key} <== changes each time the picker is opened
      locale="fr"
      set="facebook"
      defaultSkin={1}
      emojiSize={24}
      previewPosition="none"
      onEmojiSelect={(emoji) => ...}
   />
vishalDhull0910 commented 1 year ago

hi @Micka91 were you able to solve this issue ?

andrew-y0u commented 10 months ago

+1

Micka91 commented 10 months ago

Unfortunately, I had to abandon this idea in my project, but I think it's really something that would be useful on the other hand.

Ray-56 commented 5 months ago

+1