You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up Storybook for our react native application. We're using async / await.
When I run yarn run storybook I get:
I think this is related to babel not being configured with "plugins": ["transform-async-to-generator"] so I tried setting that explicitly in a .babelrc in <project>/storybook but it didn't seem to have any effect. I also tried using babel-preset-react-native-stage-0 and it didn't have any effect either.
How can I use async / await with react native storybook? I can't seem to find any examples.
Is there a way for me to configure Storybook to use a different babel config in the meantime? I couldn't seem to get it to work even with adding a .babelrc in the storybook directory that running getstorybook created for me.
I'm trying to set up Storybook for our react native application. We're using
async
/await
.When I run
yarn run storybook
I get:I think this is related to babel not being configured with
"plugins": ["transform-async-to-generator"]
so I tried setting that explicitly in a.babelrc
in<project>/storybook
but it didn't seem to have any effect. I also tried usingbabel-preset-react-native-stage-0
and it didn't have any effect either.How can I use
async
/await
with react native storybook? I can't seem to find any examples.Details:
The repo I'm working on is open source, so here's a reproduction branch: https://github.com/blargity/kitsu-mobile/tree/storybook
I'd love any help anyone can provide!
The text was updated successfully, but these errors were encountered: