https://github.com/banjerr/replacemoji-demo
Demo for the ReplacEmoji component
https://github.com/banjerr/replacemoji-demo
Last synced: about 2 months ago
JSON representation
Demo for the ReplacEmoji component
- Host: GitHub
- URL: https://github.com/banjerr/replacemoji-demo
- Owner: Banjerr
- Created: 2018-04-19T14:39:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T14:53:15.000Z (about 8 years ago)
- Last Synced: 2025-03-04T09:32:06.324Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://banjerr.github.io/replacemoji-demo/
- Size: 386 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReplacEmoji
## Easily and safely replace Unicode emojis with any image!
[demo](https://banjerr.github.io/replacemoji-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'
}
]
...
Some text with a Unicode emoji 😺```