decosoftware / deco-components

Registry of React Native components, compatible with Deco IDE (https://www.decosoftware.com/)
MIT License
188 stars 25 forks source link

[add] react-native-gifted-messenger #17

Closed dsibiski closed 8 years ago

dsibiski commented 8 years ago

@dabbott In order to make this work best out of the box, as an example, I decided to hardcode the width & height values using Dimensions. However of course, this won't work without the user adding Dimensions. Is there a way that I can auto add this via the imports section of the entry in the package.json?

dabbott commented 8 years ago

Yup - just add

"imports": {
  "react-native-gifted-messenger": "GiftedMessenger",
  "react-native": [
    "View",
    "Dimensions"
  ]
}

and uh... make it schemaVersion: 0.0.2 ;)

(side note: although it might seem logical, even though react-native is in imports, don't correspondingly add it in dependencies - we just assume it exists)

dsibiski commented 8 years ago

Ah perfect! I'll get this updated then...also, why scheme 0.0.2?

dabbott commented 8 years ago

completely undocumented, but I didn't add multiple imports in 0.0.1. so I incremented the version for that. the private beta vers of Deco will only show components of schema 0.0.1.

dsibiski commented 8 years ago

aaaah, makes sense...I thought it was specific for the component. Thanks for explaining.