react-native-storybook-boilerplate
react-native-storybook-boilerplate copied to clipboard
Configuration problems
Hi @ugglr , i'm having trouble configuring, these are steps i took.
- I cloned the repo.
- I installed the modules via
yarn. - I run the following
yarn run storybookcommand - I run the following
yarn run storybook-webcommand.
But I get left in the menu this, I don't see the various stories.
yarn run storybook:
yarn run storybook-web:
If you run on ios, it works on the emulator.
I tried your steps, everything seems to work as it's supposed to on my side:
We are working with two different installations of Storybook so we have to break down what's happening in two parts
- React Native Side
This is a "vanilla" react-native storybook installation where if you run
yarn storybookthat will start the react-native development server, whereas Storybook itself states how to use it on the welcome screen:
what it means is that you have to have a running emulator / simulator to use together with it, and when you do the side menu will stop loading.
- React-native-Web side
I did a fresh clone of this project on a new computer and installed it's dependencies with yarn, and then I ran yarn storybook-web all the example components that are in the project loaded straight up.
If you did any steps outside of that let me know
I had this problem and the solution I found was to set the host and port in storybook/index.js and in my package.json.
