Skip to content
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

String borderRadius cannot be cast to double (andriod only) #45

Open
tychovbh opened this issue Apr 19, 2022 · 3 comments
Open

String borderRadius cannot be cast to double (andriod only) #45

tychovbh opened this issue Apr 19, 2022 · 3 comments

Comments

@tychovbh
Copy link

tychovbh commented Apr 19, 2022

When we use css style for border radius, we are having an error on only android devices. IOS works fine!

CSS:

.input { border-radius: 4px; }

The error makes sense since react stylesheet borderRadius only excepts a double:
borderRadius: 4.

But the sass complier should take care of this right?

Our setup:
https://github.com/kristerkari/react-native-css-modules/blob/master/docs/setup-sass.md
We run a clean installation, so newest version of everything (expo).

See screenshot for full android error:

WhatsApp Image 2022-04-19 at 9 55 54 AM

@mkendall-goodyear
Copy link

@kristerkari - my team is also experiencing this issue on Android. Any word on fixing this (or if we should be doing something different). Our code is similar to @tychovbh 's

@kristerkari
Copy link
Owner

@mkendall-goodyear on which element are you using the border-radius property? Could you please give an example of the styles and the JSX part?

@inafi
Copy link

inafi commented Jul 5, 2023

@kristerkari I'm also having this issue on android. It pops up on any jsx element whenever you use border-radius with a pixel or percentage unit in sass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants