Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReplacEmoji

Easily and safely replace Unicode emojis with any image!

demo

How it works

  • Install the React component with npm via npm install --save replacemoji
  • Pass an array of object(s) to the replacements prop, containing two properties (searchFor and replaceWith); both being strings
const replacementArray = [
  {
    searchFor: '💩',
    replaceWith: 'https://i.gifer.com/1E2h.gif'
  },
  {
    searchFor: '😺',
    replaceWith: 'http://myfirstchat.com/bookcity2/profile10/1f701f42db7761e2d0f70c7feceb946ea91c51f4.gif'
  }
]

...

<ReplacEmoji replacements={replacementArray}>Some text with a Unicode emoji 😺</ReplacEmoji>```

About

A simple React component to allow you to create a customized replacements for Unicode emojis

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages