-
Notifications
You must be signed in to change notification settings - Fork 19
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
React native support? #26
Comments
@iRoachie please include your plugin/IDE versions |
@iRoachie, Hi! But could you confirm? There is nothing in this plugin currently that is aware of react-native props, it just assumes it is plain CSS. As a workaround, you can mark them as custom properties (Alt+Enter, 'Add to custom properties') |
If someone wants to contribute proper support for react-native style properties, seems like the way to go would be to implement It could be used to:
Seems like the main issue would be to figure out what properties and values should be accepted and where to get that information without hardcoding a list (.d.ts files?). If anyone wants to try this — I'll be happy to answer questions re: Intellij IDEA APIs. |
@daedlock The snippet you posted isn't actually valid react native code. Thanks @undeadcat, I don't have any experience with Java or Kotlin but I guess I could answer any questions you have with react native, that would help. A roadmap for this so far would look like:
const Content = styled.View`
flexDirection: row
marginRight: 24
`
"; expected" |
@iRoachie I blindly forgot about that as I thought the issue was with the |
I am getting some complains about |
@yordis just add px and you are fine. I migrated successfully all my styled to meet requirements. Only one that I can't get around with this plugin is: const Container = styled.View`
elevation: 10;
` Error:(95, 14) Mismatched property value (<angle> | below | level | above | higher | lower | [initial | inherit | unset | revert]) |
It's sad this issue is open from 2017. Hope maintainers pay more attention to styled-components React Native development |
Would be awesome to see this fixed. |
Does this plugin support react native?
All show as errors currently
The text was updated successfully, but these errors were encountered: