diff --git a/src/components/emoji.js b/src/components/emoji.js index 432ea8b..3ad1335 100644 --- a/src/components/emoji.js +++ b/src/components/emoji.js @@ -66,11 +66,11 @@ export default class Emoji extends React.Component { render() { var { set, size, sheetSize, native, forceSize, onOver, onLeave, backgroundImageFn } = this.props, - { unified } = this.getData(), + { unified, custom, imageUrl } = this.getData(), style = {}, children = this.props.children - if (!unified) { + if (!unified && !custom) { return null } @@ -83,6 +83,14 @@ export default class Emoji extends React.Component { style.width = size style.height = size } + } else if (custom) { + style = { + width: size, + height: size, + display: 'inline-block', + backgroundImage: `url(${imageUrl})`, + backgroundSize: '100%' + } } else { style = { width: size,