Closed dsibiski closed 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)
Ah perfect! I'll get this updated then...also, why scheme 0.0.2?
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.
aaaah, makes sense...I thought it was specific for the component. Thanks for explaining.
@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?