Reputation: 179
I am trying to setup react native stories on expo which is working fine on the device but I am unable to set it up for the web. I want the components to render on the Web too. Can you please suggest any guide or configuration for that?
This is my storybook configuration: https://github.com/iamshadmirza/RNDSDemo
Upvotes: 6
Views: 4257
Reputation: 2934
You should just follow this tutorial : https://www.learnstorybook.com/intro-to-storybook/react-native/en/get-started/
After expo init
, you should run npx sb init
, then install @storybook/react-native-server
(as a devDependency).
Once you're here, just install Jest as seen in the previous link, and run yarn storybook
. You'll get Storybook running on localhost:7007
Upvotes: 1