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

Using currentColor inside a Defs element crashes on Android #2615

Open
rickpastoor opened this issue Jan 16, 2025 · 0 comments
Open

Using currentColor inside a Defs element crashes on Android #2615

rickpastoor opened this issue Jan 16, 2025 · 0 comments

Comments

@rickpastoor
Copy link

Description

When using currentColor as a color on an element inside a Defs section the Svg component will crash.

It will not crash on iOS, although we suspect that at this moment the currentColor will incorrectly fall back to black, but that needs a bit more investigation. This issue is primarily about the crash.

Steps to reproduce

  1. Create a Svg component
  2. Add a Defs element into it, and use currentColor inside
  3. Apply the definition somewhere in your svg

Snack or a link to a repository

https://github.com/rickpastoor/SvgAndroidCrash

SVG version

15.11.1

React Native version

0.76.6

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

Fabric (New Architecture)

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

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

1 participant