React-native-gifted-chat: Render emojis in message

Created on 27 Apr 2017  路  2Comments  路  Source: FaridSafi/react-native-gifted-chat

This might be an easy one, but I haven't found anything on emojis in the documentation yet.

What would be the best way do I include emojis in messages?
So for example how would I print "Hello Developer 😆"?

This of course does not work:
componentWillMount() { this.setState({ messages: [ { _id: 1, text: 'Hello developer 😆', createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)), user: { _id: 2, name: 'React Native', avatar: 'https://facebook.github.io/react/img/logo_og.png', }, }, ], }); }

Thanks!

Most helpful comment

Occam's razor...
Thanks @kfiroo

All 2 comments

Emojis are just text, you don't need anything special for it :)

Occam's razor...
Thanks @kfiroo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tafelito picture tafelito  路  3Comments

maharjanaman picture maharjanaman  路  3Comments

SytzeAndr picture SytzeAndr  路  3Comments

pentarex picture pentarex  路  3Comments

arayaryoma picture arayaryoma  路  3Comments