Closed GlauberF closed 5 years ago
You should be able to require it. For example, if I wanted to use the NimblePicker I can require the nimble picker by doing
const NimblePicker = require( 'emoji-mart/dist-es/components/picker/nimble-picker' ).default;
It should be the same for the standard emoji-mart.
const EmojiMart = require('emoji-mart').default
and then use it like any other react component
<NimblePicker autoFocus={true} onSelect={this.emojiSelected} native={true} showPreview={false} set='messenger' data={data} title="Select Emoji" />
Seems to be a dupe of https://github.com/missive/emoji-mart/issues/305 (when creating it, I made https://github.com/rugk/emoji-mart-embed/)
I have an application, but I do not use webpack or babel so I can not use import