-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
'Can't find variable: document' with addon-actions, React Native #4642
Comments
Hey @torkelrogstad Actions addon is currently not supported in React Native. Only addons named on-device-* are supported on react native. https://github.com/storybooks/storybook/blob/master/ADDONS_SUPPORT.md Also you are really welcome to convert the addon to work on react native if you want to :) |
If you have any questions feel free to ask :) |
I guess I misread the table. Just so I understand it correctly: Just the ones marked with "*" are compatible with on-device React Native? |
With on-device - yes. Only the ones with * . And you use them as Also we hope in long run to support all addons by displaying them as webviews in react native. You can read more about Storybook for RN 4.0 here if you want to: https://medium.com/storybookjs/whats-new-in-storybook-4-0-react-native-741c7f481bbb |
Thank you! |
Describe the bug
When adding the actions addon, my app crashes on startup. I'm using TypeScript, React Native 0.57 (with Babel 7 transpilation instead of
tsc
compilation) and Storybook 4.0. The issue appears very similar to #4063storybook/rn-addons.ts
:storybook/index.ts
:Relevant parts of
package.json
:Expected behavior
I expect the action logger panel to appear on my device.
System:
@storybook/addon-actions
The text was updated successfully, but these errors were encountered: