import { emojify } from 'react-emojione';

const options = {
  styles: {
    backgroundImage: 'url(//cdnjs.cloudflare.com/ajax/libs/emojione/' +
    '1.5.2/assets/sprites/emojione.sprites.png)'
  }
};

export default function (txt, customOptions) {
  return emojify(txt, customOptions ? { ...options, ...customOptions } : options);
}

import { emojify } from 'react-emojione';

const options = {
  styles: {
    backgroundImage: 'url(https://cdnjs.cloudflare.com/ajax/libs/emojione/' +
    '1.5.2/assets/sprites/emojione.sprites.png)'
  }
};

export default function (txt, customOptions) {
  return emojify(txt, customOptions ? { ...options, ...customOptions } : options);
}

Use full path for emojione to be supported on non-web apps
Use full path for emojione to be supported on non-web apps
