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
Does not work with react-native@0.56 #1974
Comments
What in tarnation... so this is an incidental RN 0.56 issue not actually a s-c beta issue correct? |
I've just booted up a fresh RN@0.56.0 and tried to replicate, it works fine for me following your reproduction steps, @mgcrea. I pasted your code verbatim. System:
Binaries:
npmPackages:
|
@mgcrea Boom, I can now replicate. I made a typo in my babelrc. I did: "plugins": ["babel-plugin-styled-components"] Instead of: "plugins": ["styled-components"] My apologies! |
That should be equivalent in Babel 6? |
@probablyup React Native 0.56.0 is Babel 7 beta. |
Any chance you could post a repro using expo or something? I don't use RN, personally. |
@probablyup Apologies for the late reply. Getting up and running
Let me know if you have any issues getting up and running. |
Same error with React native 0.57.1. But only if I use React Native Text component inside a styled-component View.
|
@tobiastornros Do you have babel-plugin-styled-components installed at all? |
@Aidurber No |
Not sure what's going on with your setup, but I just tested it locally and it works fine so closing. If you can come up with a minimal reproduction, feel free to make a new issue. |
Environment
System:
Binaries:
npmPackages:
Reproduction
Steps to reproduce
Run in react-native project with version >= 0.56
Expected Behavior
Does not crash
Actual Behavior
Related to:
facebook/react-native#20084
facebook/react#13211
The text was updated successfully, but these errors were encountered: