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
MDX doc doesn't work with react-native installation #341
Comments
@renanbronchart I've moved this over to the react native repo since its separate. MDX is not yet supported in react native so this isn't a bug it's just a missing feature. However MDX on react native is not necessarily easy. I looked into it once before and I didn't find any well maintained libraries. However its been a while. If you know of any good way to support MDX in react native I'm open to it. On another note you can use MDX with addon-react-native-web already so you might be interested in that addon for web storybook. |
It may be possible to use MDX with storybook via this project from @danieldunderfelt and probably soon I will experiment with it. https://github.com/danieldunderfelt/rn-mdx talk about it here: I think that you could already get it working in your own project if you are willing to experiment a bit. I'm not sure if it could be made more automatic for storybook however maybe someone has ideas? |
so, were you able to create the documentation? |
@di1606 as I mention above it should be possible to do manually but I haven't had time to work on a guide or anything unfortunately |
Describe the bug
I followed this doc:
https://storybook.js.org/tutorials/intro-to-storybook/react-native/en/get-started/
But after all configurations, MDX files can't be resolved.
And I have this error on my simulator.
And I can't follow some issues about that because I haven't the same directory generated.
I have
/storybook/index.js
and not/.storybook/main.js
. I don't know why, but that have been generated by the command:npx -p @storybook/cli sb init --type react_native
To Reproduce
I've followed the react-native doc with storybook, and I've just added a storyloader file.
System
Environment Info:
System:
OS: macOS 11.5.2
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 16.14.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.3.1 - /usr/local/bin/npm
Browsers:
Chrome: 99.0.4844.51
Safari: 14.1.2
npmPackages:
@storybook/addon-actions: ^5.3 => 5.3.21
@storybook/addon-docs: ^5.3 => 5.3.21
@storybook/addon-essentials: ^5.3 => 5.3.21
@storybook/addon-knobs: ^5.3 => 5.3.21
@storybook/addon-links: ^5.3 => 5.3.21
@storybook/addon-ondevice-actions: ^5.3.23 => 5.3.23
@storybook/addon-ondevice-knobs: ^5.3.25 => 5.3.25
@storybook/addon-storysource: ^5.3 => 5.3.21
@storybook/preset-typescript: ^3.0.0 => 3.0.0
@storybook/react-native: ^5.3.25 => 5.3.25
@storybook/react-native-server: ^5.3.23 => 5.3.23
The text was updated successfully, but these errors were encountered: