Skip to content

Some corrections and code refactoring#117

Open
rcacheira wants to merge 13 commits intovault-development:masterfrom
rcacheira:master
Open

Some corrections and code refactoring#117
rcacheira wants to merge 13 commits intovault-development:masterfrom
rcacheira:master

Conversation

@rcacheira
Copy link
Copy Markdown

@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

Comment thread index.js

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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Author

@matc4 did you take the change to review this?

@matc4
Copy link
Copy Markdown
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