Skip to content

feat: Add SVG support for transformed SVG components in Icon #3791

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adids1221
Copy link
Contributor

@adids1221 adids1221 commented Aug 20, 2025

Description

Adds comprehensive SVG support for the Icon component by implementing a smart mapper that translates React Native style props (like tintColor) into the appropriate SVG properties (fill, stroke).
This enables SVG icons to respond to styling props consistently with regular image icons.

Note: the playground and the svg images will be reverted from this PR after review

TODO: Check on private, check the automatic size?

Changelog

Icon - SVG icons now properly support tintColor and other style props

Additional info

Ticket 4799

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

Successfully merging this pull request may close these issues.

1 participant