Skip to content

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

Open
@tychovbh

Description

@tychovbh

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions