pladaria / react-emojione

A tiny library to use emojis in React
186 stars 32 forks source link

[object Object] #24

Closed vonubisch closed 6 years ago

vonubisch commented 6 years ago

When using the emojify function every emoji gets turned into [object Object]

React 16

pladaria commented 6 years ago

Can you please post a minimal source code where your issue gets reproduced?

Anyway, if you look at the first test:

test('shortnames', t => {
    t.test('shortname alternates', t => {
        const result = emojify(':+1: :thumbsup:', { output: 'unicode' });
        const expected = '👍 👍';
        t.equals(result, expected, result);
        t.end();
    });
});

emojify seems to work