Happeo UIkit logo
Components
Home
Packages
AlertsAvatarBannersBreadcrumbsButtonsButtonsDS3CardColor PickerColorsContent RendererEmojisEmoji functionsFile IconFile PickerForm ElementsIcons AppIcons FileIcons FlagIcons LegacyIcons SymbolImage CarouselImage CropperImage GridLayoutListLoadersMenusModalsNavigationThemeToastTypography

Emojis

Emoji functions

This package was created to minimize the amount of code imported with the emojione library. The 3 main functions for emoji handling are shortToUnicode(), emojisToShort(), removeEmojis() and listAllEmojis(). They can be used in different text environments and to list all emojis.

const text = "This is emoji with short hand :smile: converted to unicode";
const renderText = shortToUnicode(text);
const text2 = "This is unicode 😄 converted to short hand";
const renderText2 = emojisToShort(text2);
const text3 = "This is 😄 has emojis 😄 and they will be removed 😄";
const renderText3 = removeEmojis(text3);