How to use the emoji-toolkit.shortnameToUnicode function in emoji-toolkit

To help you get started, we’ve selected a few emoji-toolkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RocketChat / Rocket.Chat.ReactNative / app / containers / message / RepliedThread.js View on Github external
const RepliedThread = React.memo(({
	tmid, tmsg, isHeader, isTemp, fetchThreadName, id
}) => {
	if (!tmid || !isHeader || isTemp) {
		return null;
	}

	if (!tmsg) {
		fetchThreadName(tmid, id);
		return null;
	}

	let msg = shortnameToUnicode(tmsg);
	msg = removeMarkdown(msg);

	return (
		
	);
}, (prevProps, nextProps) => {
	if (prevProps.tmid !== nextProps.tmid) {
github RocketChat / Rocket.Chat.ReactNative / app / containers / markdown / Emoji.js View on Github external
const Emoji = React.memo(({
	emojiName, literal, isMessageContainsOnlyEmoji, getCustomEmoji, baseUrl, customEmojis, style = [], theme
}) => {
	const emojiUnicode = shortnameToUnicode(literal);
	const emoji = getCustomEmoji && getCustomEmoji(emojiName);
	if (emoji && customEmojis) {
		return (
			
		);
	}
	return (

emoji-toolkit

JoyPixels is a complete set of emoji designed for the web. The emoji-toolkit includes libraries to easily convert unicode characters to shortnames (:smile:) and shortnames to JoyPixels emoji images. PNG formats provided for the emoji images.

MIT
Latest version published 4 months ago

Package Health Score

72 / 100
Full package analysis