-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
docs: change v6 test readme to use expo install #258
Conversation
Use expo install instead of yarn add to maintain compatibility with expo.
Thanks for your contribution 🙇♂️. Will give it a try :) |
@kkalavantavanich do you think it would be better to have a separate set of steps for expo? I'm fine with either way but would be good to have your opinion :). (Not suggesting to do that as part of this pr) I'm also thinking about adding some scripts to the |
Yeah, now that I think about it, probably better to separate them. I'll do
it when I am in front of the computer. 👍
…On Sat, Aug 28, 2021, 17:17 Danny ***@***.***> wrote:
@kkalavantavanich <https://github.com/kkalavantavanich> do you think it
would be better to have a separate set of steps for expo? I'm fine with
either way but would be good to have your opinion :).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#258 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFB5KAAQDBXXU5YLLBPNHFTT7CZTPANCNFSM5C63LWGQ>
.
|
Done |
Oh, I guess I misunderstood your point. I guess it depends on how you want to test this. Separating them out would obviously be clearer for the alpha testers. People can just look at what they use. On the other hand though, the steps can start to diverge between vanilla and expo, which might affect the final installation process after the new version is released as well. People are less likely to notice this divergence if they exist in separate file.
What do you have in mind? I'm particularly curious because I come from the learnstorybook repo and the installation guide is way out of date. I followed the rabbit hole to update the learnstorybook repo and found this nice repo. I would like to update the guide for this version too. |
I think the way you did it is fine for now, later two separate guides can be made if necessary.
Yeah I'm aware the tutorial is very outdated, after 6.0 is out of alpha I'll focus on making a good tutorial. The tutorial is part of a separate repository and I usually suggest just following the getting started in this repo's readme until that tutorial can be updated. What I mean by adding some scripts is just having some basic scripts for easier alpha testing that could be later worked into the existing storybook cli which is used for the current setup on stable versions. I already have a script made in a gist that works for regular react native, it could be adjusted to make an expo one too. |
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.
I'm ok with this but see my comment in the review I think it could be possible to use expo install for all dependencies
For Expo, we need to separately install the react native packages so Expo can maintain the compatibility for us. | ||
|
||
```shell | ||
yarn add @storybook/react-native@next \ |
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.
I think you could list all the dependencies with expo install, I believe it will just do a regular yarn install for packages without native dependencies. Something like this:
expo install @storybook/react-native@next \
@storybook/addon-ondevice-actions@next \
@storybook/addon-ondevice-controls@next \
@storybook/addon-ondevice-backgrounds@next \
@storybook/addon-ondevice-notes@next \
@storybook/addon-actions \
@storybook/addon-controls \
@react-native-async-storage/async-storage \
@react-native-community/datetimepicker \
@react-native-community/slider
Sorry for the delay on this one. Will merge now, thanks for your contribution. |
* feat: change v6 test readme to use expo install Use expo install instead of yarn add to maintain compatibility with expo. * doc: separate out expo from vanilla js
Issue: Expo warning while following v6 test readme
What I did
This is caused by not using
expo install
to install@react-native-community/slider
and maintain compatibility versions. I updated documentation to useexpo install
instead ofyarn add
to maintain compatibility with expo.How to test
Please explain how to test your changes and consider the following questions
If your answer is yes to any of these, please make sure to include it in your PR.