dannyhw / expo-template-storybook

An expo template for react native storybook
https://www.npmjs.com/package/expo-template-storybook
30 stars 7 forks source link

How is this supposed to be used? #3

Closed Nautman closed 2 years ago

Nautman commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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