Closed origo27 closed 6 years ago
Hmm not ideal, but you could access it by rendering the Emoji
component and then using a ref
prop to access the component instance directly. Is there a reason why you're unable to use the Emoji component to handle the rendering?
we're trying to convert markdown formatted text containing emoj.colons and inserting emoji component in between the text does not seem possible.
example:
" *Hey* rigo :smile: , how are you?"
should render as :
<strong>Hey</strong> rigo <img style="display:inline-block;background-image:url(https://a.slack-edge.com/c00d19/img/emoji_2017_12_06/sheet_apple_64_indexed_256.png); background-position:58.8235294117647% 54.90196078431372%; background-size:5200%; width:24px; height:24px" /> , how are you?
Ahh okay, do you think something like this would work? https://gist.github.com/jm-david/7f98c3ee4fe235c596cff26d7aa26b7b
does your regex support different skins for emojis like :ok_hand|type_3:
? I need this format so that it can be parsed by in our mobile apps as unicode.
Yep should do! :)
thanks david! going to try it. I have another question though, for EmojiSearch, the mapping is using the native , how can I replace the display from native to the set sheet? screenshot below:
Are you using the Emoji component? Or just outputting the native emoji directly?
ah yes, i forgot i was displaying the native directly. thanks for the heads up. Using the emoji component now but it seems that it does not render the emoji:
however if i tried :santa::skin-tone-3:
it displays the correct emoji :
Umm not sure sorry, that looks correct to me... 🤔
nvm, just needed an update. hehe thanks!
Hi, I would like to know if there is any way that I could pull this object when clicking on an emoji in the picker? or how can I add it in the Emoji Object obtained.