-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook with React Native Web #1946
Comments
Just as an addition to @leggomuhgreggo post. If you need to add loaders to your storybook you can also add modules rules as below...
I found this especially handy when working with images |
يا عيني على ربك يا زلمه |
Storybook has since changed their Webpack config customisation API. This should do effectively the same thing, although I'm fairly sure the modules, and extensions are not needed.
TypeScriptThis is really just the Storybook recommended create-react-app TypeScript config with the alias added:
|
Working example of how to get Storybook to work with RNW, for anyone else who's trying. Just requires a custom webpack config using full control mode
Using versions:
Add the
webpack.config.js
in.storybook
folder, with this:Hope this helps someone!
related to #44
The text was updated successfully, but these errors were encountered: