React Text Emoji
Call emojis/emoticons (as image) with text in React
Installation
# npm $ npm install react-text-emoji # yarn $ yarn add react-text-emoji
Usage
// file loader
Customize
Rendering components are customizable
;<Message containerComponent=Container emojiComponent=Emoji textComponent=Text/> const Container = <div style= display: 'flex' alignItems: 'center' ...props > children </div> const Text = <span style= marginRight: 5 ...props > value </span> const Emoji = <img style= width: 30 height: 30 marginRight: 5 src=value alt="" ...props />