-
Notifications
You must be signed in to change notification settings - Fork 83
[Bug] Parsed "aspect-ratio: 4/3" is causing errors in the android simulator #177
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
Comments
It looks like we forgot to handle this when we made the library, so it passed it in as a string. At that time, react-native only supported numbers, so that was a bug. However, since then, react native started supported string values. I can't tell you why it's broken on Android for you That said, we'd also accept a PR to convert the |
Ah ok. Looking at it further, the string support was added in 0.71, which is a release candidate |
Hi @jacobp100, when I started implementing the changes, I found your old branch (from 2019) with the fix for that issue. The Name of the branch is: |
Sorry - yes - you're right. I need to do a publish |
Published 3.1.0 |
Hi @jacobp100, I can see that you have bumped the version to 3.1.0 but I'm not sure are aspectRatio changes included in it. I have checked out the newest master and I can't see the |
Hi,
I have an issue with parsing the aspect-ratio property.
Steps to reproduce
aspect-ratio: 4/3;
"aspectRatio": "4/3"
instead of the"aspectRatio": 4/3
I do understand the rule of this lib described in the README:
Converts all number-like values to numbers, and string-like to strings.
but
"4/3"
is not a valid CSS or React native styles value.Worth to mention that the
"1/1"
value works on iOS but crashes the app on Android.Am I doing something wrong, or it should be fixed in the lib? :)
If it should be fixed I can help with the contribution (if it's needed)
Thanks in advance,
@MarchewkaMatthew
The text was updated successfully, but these errors were encountered: