You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
208 B

  1. import emojione from 'emojione';
  2. emojione.imageType = 'png';
  3. emojione.sprites = false;
  4. emojione.imagePathPNG = '/emoji/';
  5. export default function emojify(text) {
  6. return emojione.toImage(text);
  7. };