-
Notifications
You must be signed in to change notification settings - Fork 333
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
Some corrections and code refactoring #117
base: master
Are you sure you want to change the base?
Conversation
… pull request made by @mgufrone
…svg fill properties. Added some supported attributes.
} | ||
|
||
inspectNode(node){ | ||
// Remove empty strings from children array | ||
trimElementChilden = (childrens) => childrens.filter((children) => typeof children !== 'string' || children.trim.length !== 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be trim().
I've started a fork of this library named react-native-svg-from-uri
Do you mind if I use parts of this PR in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@machour no problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll make the correction tomorrow!
@matc4 did you take the change to review this? |
Hello @rcacheira !, can you resolve the conflicts, and we merge it. Thanks! |
I'have included the pull request #75 and #88, with some corrections and code refactoring, thanks to @BerndSchrooten and @mgufrone.
The code is now supporting:
<style>
<clipPath>
viewBox
propertystyle
propertyclass
propertyThi pull request solves the most common problem of SVG showing black.
fixes #86
closes #75
closes #88