-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[onDeviceUI] Adding on device addons. #4327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly versions mismatch.
@@ -0,0 +1,33 @@ | |||
{ | |||
"name": "@storybook/addon-ondevice-backgrounds", | |||
"version": "4.0.0-alpha.20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed the version update
"prepare": "node ../../scripts/prepare.js" | ||
}, | ||
"dependencies": { | ||
"@storybook/addons": "4.0.0-alpha.20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like everywhere
addons/ondevice-knobs/package.json
Outdated
}, | ||
"dependencies": { | ||
"@storybook/addons": "4.0.0-alpha.20", | ||
"@storybook/addon-knobs": "4.0.0-alpha.20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't get where this in use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A person who uses ondevice-knobs will be still importing addon-knobs inside their app. So if he doesn't install it directly we still want him to have it in his node_modules. @igor-dv.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but users will need to install it explicitly. In that case, you probably want it to be a peer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, thanks :)
addons/ondevice-knobs/package.json
Outdated
"prop-types": "^15.6.2", | ||
"react-native-color-picker": "^0.4.0", | ||
"react-native-modal-datetime-picker": "^5.1.0", | ||
"react-native-modal-selector": "0.0.27", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be stuck to the exact version?
Nothing seems to be blocking this PR too @ndelangen, @igor-dv. |
Let's merge if after the #3903 is ready? We won't use addons without the support for addons, right? |
Sure. |
merge when ready |
This PR is part of #3903.
This adds 3 on device addons: Notes, Knobs, Backgrounds.
They are definitely not the cleanest and up to date addons.
Looking forward @ndelangen suggested that we have to think of the way to display addons as webviews in the app. But for now these are good enough to display that we can have addons in the app.