How to use the interweave-emoji.EmojiDataManager.getInstance function in interweave-emoji

To help you get started, we’ve selected a few interweave-emoji 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 milesj / interweave / tests / setup.ts View on Github external
import { loadEmojiData } from 'emojibase-test-utils';
import { EmojiDataManager } from 'interweave-emoji';
import EmojiDataSourceManager from '../packages/emoji/src/EmojiDataManager';

const data = loadEmojiData();

// Bootstrap our emoji data using the official en dataset

// @ts-ignore
global.regeneratorRuntime = require('regenerator-runtime');