-
Notifications
You must be signed in to change notification settings - Fork 27
How to use with react-native? #83
Comments
It's works for me without any issues.
|
Also if you interested in using this in the browser instead of on your device, you should check out react-native-web. It can be tricky to set up, but it's working very well for me. |
Hi @ndbroadbent How to set up react-native-web to develop React Native components with storybook on a browser? |
Hey, You can try to look into https://github.com/wix/react-native-storybook-example . It has knobs running in react-native. |
@hadfieldn did you manage to get it running? I'm stuck as well on the same error when building. |
I'm struck here as well. Obviously there is a dependency on the 'document' which is missing in the react-native environment. Any workarounds/fixes? |
@pastawoua @sowdri please see storybookjs/storybook#803 This repository is deprecated. |
@shilman Thank you for the info. |
It looks like others have had success getting knobs to work with react-native storybook, but when I include
import '@kadira/storybook-addon-knobs/register';
in my addons.js file I get the errordocument is not defined
-- due to a dependency on insert-css, which requiresdocument
.Is there another way to register the addon that works with react native?
The text was updated successfully, but these errors were encountered: