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

fix: Handle hex colors that does not start with "#" or "0x". #1744

Conversation

antondalgren
Copy link

Summary

Minor partial fix of #1740 . This PR fixes the issue with colors containing a hex value, but without the #or 0x start.

Test Plan

I have not managed to get a local version of the library to work in my test app, so could not take on the major parts of the issue.

What's required for testing (prerequisites)?

A value of fill="888888"

What are the steps to reproduce (after prerequisites)?

Render the SVG with the color.

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)
  • I added a test for the API in the __tests__ folder

@WoLewicki
Copy link
Member

Could you check if it is needed on the newest main branch? I changed the implementation to use react-native's processColor directly, so it should handle all cases which are handled by RN itself.

@WoLewicki
Copy link
Member

Closing due to no response provided. Feel free to comment to reopen.

@WoLewicki WoLewicki closed this Aug 17, 2022
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.

2 participants