Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banjerr/replacemoji
A simple React component to allow you to create a customized replacements for Unicode emojis
https://github.com/banjerr/replacemoji
Last synced: 6 days ago
JSON representation
A simple React component to allow you to create a customized replacements for Unicode emojis
- Host: GitHub
- URL: https://github.com/banjerr/replacemoji
- Owner: Banjerr
- Created: 2018-04-18T00:56:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T10:38:00.000Z (almost 2 years ago)
- Last Synced: 2024-06-01T04:36:29.381Z (8 months ago)
- Language: JavaScript
- Size: 565 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
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 😺```