tunoltd / emoji-mart-native

One component to pick them all πŸ‘ŠπŸΌ
https://tunoltd.github.io/emoji-mart-native
BSD 3-Clause "New" or "Revised" License
86 stars 31 forks source link

Can this be used without running babel on node_modules? #217

Closed mgw-sbex closed 3 years ago

mgw-sbex commented 3 years ago

Describe the bug A clear and concise description of what the bug is. Hi, when I try to include the EmojiButton and NimblePicker in my RN app, I get Uncaught TypeError: Cannot read property 'style' of undefined at Object. (main.js:formatted:109603) at a (main.js:formatted:11) at Object. (main.js:formatted:64433) at a (main.js:formatted:11) at Object. (main.js:formatted:33120) at a (main.js:formatted:11) at Object. (main.js:formatted:109128) at a (main.js:formatted:11) at Object. (main.js:formatted:31082) at a (main.js:formatted:11) On the line below: πŸ‘ }(c.default.PureComponent); t.default = p, (0, l.default)(p, "propTypes", { notFound: d.default.func.isRequired, notFoundEmoji: d.default.string.isRequired, emojiProps: d.default.object.isRequired, style: g.ViewPropTypes.style,<----- un theme: d.default.oneOf(["light", "dark"]) To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Tap on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

pederjohnsen commented 3 years ago

Hey @mgw-sbex, sorry for the late reply!

Are you using expo? if not which RN version are you using?

mgw-sbex commented 3 years ago

Hey Thanks @pederjohnsen . It's actually just Typescript React for the web... nothing native. There are no css files, only stylesheets in the components. It would be better if I could install into my tree instead of node_modules I guess.

pederjohnsen commented 3 years ago

If on web, I would recommend using https://github.com/missive/emoji-mart instead πŸ€”