Skip to content
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

How is this supposed to be used? #3

Closed
Nautman opened this issue Jun 20, 2022 · 3 comments
Closed

How is this supposed to be used? #3

Nautman opened this issue Jun 20, 2022 · 3 comments

Comments

@Nautman
Copy link

Nautman commented Jun 20, 2022

Hi,

I have been struggling with using storybook in my React Native project. This template is the one that currently works the best. However, I am wondering how I am supposed to use the components that I develop both in my app and in my storybook?

Currently, I have set up a normal Expo app, with a subfolder where this template exists. Then I have made aliases in my app to get the components from storybook/components. Then, my problem becomes that there exists two copies of react in my app. One in node_modules/react and one in storybook/node_modules/react.

If you could please help guide me in the right direction of how I am supposed to use the components that I develop in a storybook in my actual app I would be very very grateful.

Thank you.

@Nautman
Copy link
Author

Nautman commented Jun 20, 2022

Ironically I think perhaps I might go with the solution proposed by @MiguelNiblock in #1. No issues for months and then two people stumbling upon the same question in the span of a day.

@Nautman
Copy link
Author

Nautman commented Jun 20, 2022

For what it's worth the solution described in #1 worked great. You can close this issue if you don't want to add any additional comments.

@dannyhw
Copy link
Owner

dannyhw commented Jun 20, 2022

Hey :), yeah I would follow the approach in #1 like you said 👍

@dannyhw dannyhw closed this as completed Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants