"Great video, thank you! I'm using Expo with SDK 48 and followed your steps. However, when I run 'npm run storybook,' I encounter the following error: app@1.0.0 storybook STORYBOOK=1 expo start -c It says 'STORYBOOK' is not recognized as an internal or external command, operable program, or batch file. Can you please help me with this?"
Hey, the environment variable is not being picked up by your machine. if you're using Windows try changing the script to the following: => "storybook": "set STORYBOOK=1 && expo start -c". If you're on a Linux/MacOS, try installing cross-env: => npm install cross-env --save-dev Then update the script to be the following: => "storybook": "cross-env STORYBOOK=1 expo start -c" Let me know how it goes. Fede
All the Storybook code won’t be shipped or bundled, so no performance decrease. Storybook is not a replacement to StyleSheet, imagine it as an environment where you can view your components in isolation.
Hi, what problem have you encountered? If you’re having trouble dynamically launching the Storybook scripts, there is an approach for CLI in the description
Awesome! Thankd buddy!
Cheers mate, glad it was helpful
Fantastico!!!❤
This is so great
Thanks. Perfectly explained. You earned a sub here ;)
Thanks @diptasudipta, glad you found it useful!
Great video :)
Thanks Danny, especially with all you do for Storybook!
Thank You,
Really good video, thanks
Thanks you! Glad you found it useful
Good video
Thank you 🙏
How to run the storybook on web in the same setup?
Thanks
Please, do a Video setting up storybook on a ReactNative project using expo-router
As far as my knowledge of expo-router goes, you should be fine following the set up on this video for Storybook
"Great video, thank you! I'm using Expo with SDK 48 and followed your steps. However, when I run 'npm run storybook,' I encounter the following error:
app@1.0.0 storybook
STORYBOOK=1 expo start -c
It says 'STORYBOOK' is not recognized as an internal or external command, operable program, or batch file. Can you please help me with this?"
Hey, the environment variable is not being picked up by your machine.
if you're using Windows try changing the script to the following:
=> "storybook": "set STORYBOOK=1 && expo start -c".
If you're on a Linux/MacOS, try installing cross-env:
=> npm install cross-env --save-dev
Then update the script to be the following:
=> "storybook": "cross-env STORYBOOK=1 expo start -c"
Let me know how it goes.
Fede
do you know how storybook affect RN performance? or you agree use any tool than to learn stylesheet?
All the Storybook code won’t be shipped or bundled, so no performance decrease.
Storybook is not a replacement to StyleSheet, imagine it as an environment where you can view your components in isolation.
it doesn't work in CLI, can you create a tutorial for CLI?
Hi, what problem have you encountered? If you’re having trouble dynamically launching the Storybook scripts, there is an approach for CLI in the description