-
Notifications
You must be signed in to change notification settings - Fork 57
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
Configuration for React Native #229
Comments
There is another similar issue #205, but as I see the error is different and configuration there seems to be for Babel 6. |
An update, if I remove: [
"@babel/plugin-transform-flow-strip-types"
] ... from .babelrc, then I get |
Ok, the issue is with import type and restructuring. Here is a piece of code where it fails:
which gets transformed into:
I have import + restructuring all over the code, but only in this place where I have import type it's not transformed. If I remove flow-runtime it gets transformed correctly. How do I change my |
The reason it's not working only in that place is because I have |
This is a:
Which concerns:
What is the current behaviour?
require is not defined
on app start upWhat is the expected behaviour?
App starts correctly
Which package versions are you using?
react-native: 0.57.8
flow-runtime: 0.17.0
babel-plugin-flow-runtime: 0.19.0
.babelrc
I haven't found a correct configuration for react-native 0.57+ and babel 7 on Internet. This might be me doing something wrong. I tried my best to convert the configuration from here to use with react-native and babel 7 though.
The text was updated successfully, but these errors were encountered: