missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.59k stars 826 forks source link

is there any bundle version ? #237

Closed GlauberF closed 5 years ago

GlauberF commented 5 years ago

I have an application, but I do not use webpack or babel so I can not use import

rechandler commented 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" />

rugk commented 5 years ago

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/)