2

Hello lads/las I am working on a project which trigger "SendBird" messaging service; I implemented all the basic functions but right now I am trying to use Emoji for ease of use inside it. Have no idea where to start, any suggestion Appreciate.

Need to mention I need free license service if you are suggesting any API's. :D

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Milan
  • 152
  • 1
  • 14

2 Answers2

1

You can use ReactEmoji.

Here's a link to the github repository : https://github.com/banyan/react-emoji.

Just do npm install react-emoji --save to save it as a dependency to your project. Then import it to your project import ReactEmoji from 'react-emoji'.

Then just to {ReactEmoji.emojify(*your message here*)} . The emojify function will render your message and turn it into an object, which is going to display as an icon later.

Radoslav Naidenov
  • 747
  • 1
  • 5
  • 12
0

Unicode emojis should be supported on SendBird by default; unless your browser does not support them natively, they should be rendered without any problems.

terryk
  • 116
  • 7
  • Thank you for your response, but do you know anyway of using unicode to be cross-platform. Because the project is suppose to be Cross-platform.? – Milan Mar 17 '17 at 13:11
  • @Milan well, most modern platforms should support emojis. [Here](http://caniemoji.com/) is a handy link to check emoji support across platforms and versions. – terryk Mar 17 '17 at 15:14