-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Warning: Expected style "shadowOpacity: 0.75px" to be unitless #3916
Comments
We use |
@radekzz can I work on this issue |
@radekzz I guess the problem is in the @emotion/unitless , the shadow-opacity property is not listed in the unitless keys list |
Oh ummm I see that this is being worked on though can I work on this issue too? @radekzz |
I think the fix is waiting to be merged on Emotion’s side: emotion-js/emotion#3014 |
Stumbled across this issue and thought I'd take a look. So I'm wondering if this is something to be solved within this repo. Is I'm also wondering, does css-to-react-native solve this issue? I only just learned about that tool, so apologies if that's a silly question. If we do want to solve this issue here, a map of overrides could be added to the |
I think what probably needs to happen here is to adjust react-native uses the |
When applying shadow-opacity numeric value, it get's converted to string with pixels, which is wrong.
Environment
RN 0.67.5
styled-components 5.3.5
Reproduction
Steps to reproduce
Use style
'shadow-opacity': 0.75
Same problems are reported in closed issue
Expected Behavior
No warning
Actual Behavior
Warning appears
Warning: Expected style "shadowOpacity: 0.75px" to be unitless
The text was updated successfully, but these errors were encountered: