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

Some corrections and code refactoring #117

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

rcacheira
Copy link

@rcacheira rcacheira commented Mar 4, 2018

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 property
  • style property
  • class property

Thi pull request solves the most common problem of SVG showing black.

fixes #86
closes #75
closes #88

}

inspectNode(node){
// Remove empty strings from children array
trimElementChilden = (childrens) => childrens.filter((children) => typeof children !== 'string' || children.trim.length !== 0)
Copy link

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@machour no problem

Copy link
Author

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!

@rcacheira
Copy link
Author

@matc4 did you take the change to review this?

@matc4
Copy link
Collaborator

matc4 commented Jun 10, 2018

Hello @rcacheira !, can you resolve the conflicts, and we merge it. Thanks!

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.

Custom "fill"
3 participants