Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-emojione-menu
Advanced tools
Install from npm
import EmojiMenu from 'react-emojione-menu';
function sendEmoji(emoji) {
send.emoji(emoji);
}
function MyComponent() {
return (
<EmojiMenu sendEmoji={sendEmoji} />
);
}
See emojione's documentation for rendering emojis from strings.
import EmojiMenu from 'react-emojione-menu';
import emojione from 'emojione';
emojione.imageType = 'svg';
emojione.sprites = true;
emojione.imagePathSVGSprites = '/pathToSpriteSheet.svg';
function sendEmoji(emoji) {
send.emoji(emoji);
}
function MyComponent() {
return (
<EmojiMenu
sendEmoji={sendEmoji}
svgSprites="/pathToSpriteSheet.svg"
/>
);
}
See emojione's documentation on using svg sprites and download link for the sprites.
The default color for active categories is '#62B3EC'
, you can change this by passing your color as activeColor
to <EmojiMenu />
.
Install node_modules
used in ./src
:
$ npm i
Compile ./src
with Babel:
$ npm run compile
Install node_modules
used in ./examples
:
$ cd examples && npm i
To watch for changes in ./src
run:
$ npm run watch
Babel will compile ./src
on changes.
To start the webpack server run:
$ cd examples && npm run start
Webpack wil compile on changes in ./examples/src
.
If you want to help with the development of this module and need to test your changes with the examples you can import <EmojiMenu />
directly from ./dist
. Be sure to run npm run compile
first.
'./examples/src/app.js'
// Change this
import EmojiMenu from 'react-emojione-menu';
// to this
import EmojiMenu from '../../dist/index';
This project is licensed under the terms of the MIT license.
FAQs
Emoji menu with React and emojione
The npm package react-emojione-menu receives a total of 6 weekly downloads. As such, react-emojione-menu popularity was classified as not popular.
We found that react-emojione-menu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.