Skip to content

[android] SvgView is doing more checks than expected? #2863

Description

@marqroldan

Description

When providing a property of outlineColor to <Svg/> with values like transparent or #FFFFFF30, this crashes on android with a message saying: "java.lang.Double cannot be cast to java.lang.integer"

While this is indeed unsupported (for <Svg/>), this crash only happens on Android but is acceptable for iOS and Web

Which one is to be followed?

Steps to reproduce

Feel free to manipualte the snack example; Expo Go (SDK54) won't load the snack when it crashes

Snack or a link to a repository

https://snack.expo.dev/@hcmlroldan/svg-example

SVG version

15.15.1

React Native version

0.81.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions