Storybook Web + React Native Example #337
fjmillman
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Thanks for sharing 🙏 The issue of 6.4 compatibility comes down to changes to the story store to be lazy loaded which isn't supported in the current (beta) implementation of rn storybook, however 6.3 works fine. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks!
I just thought I should share this for anyone who is interested.
I've spent a bit of time experimenting and putting together a working base template of how an Expo/Next.js app would work with full support for both the Web (through the React Native add-on) and React Native versions of Storybook to cover both cases.
https://github.com/fjmillman/expo-nextjs-storybook
This involves the use of React 17, Storybook v6.4, and the latest Storybook React Native v6 Beta.
I'm currently using this as a springboard into app development in the Expo eco-system, using Storybook React Native to check components on devices and using Storybook Web to do the same for web with the added bonus of Storybook's inbuilt Interaction Testing.
Hopefully this helps anyone who may be having issues with getting the latest versions of Storybook working.
Beta Was this translation helpful? Give feedback.
All reactions