setCustomReactions

  • Use this to set custom reactions emojis.
const customReactions = {
    "URL_EMOJI_ID": {
        "url": "https://em-content.zobj.net/source/apple/391/fire_1f525.png"
    },
    "URL_EMOJI_ID_2": {
        "iconUrl": "EMOJI_URL"
    },
    "TEXT_EMOJI_ID": {
        "emoji": "🤣" // emoji as a text
    }
};

<VeltInlineReactionsSection customReactions={customReactions} />

API Method:

const reactionElement = client.getReactionElement();
reactionElement.setCustomReactions(customReactions);

Was this page helpful?