{"_id":"@camilo5972/react-native-svg-uri","_rev":"4-d23da134fac48a1699d3d12261882136","name":"@camilo5972/react-native-svg-uri","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@camilo5972/react-native-svg-uri","version":"1.0.0","description":"Render an SVG Image from an URL","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register"},"repository":{"type":"git","url":"git+https://github.com/camilo5972/react-native-svgUri.git"},"keywords":["react-native","svg","url","uri","http"],"author":{"name":"Matias Cortes"},"license":"ISC","dependencies":{"xmldom":"^0.1.22"},"peerDependencies":{"react-native-svg":"^9.6.2"},"bugs":{"url":"https://github.com/camilo5972/react-native-svgUri/issues"},"homepage":"https://github.com/camilo5972/react-native-svgUri#readme","devDependencies":{"babel-core":"^6.24.1","babel-preset-react-native":"^2.1.0","chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"811e48f68bbd0f86accb4a3cef5854d7c5c4920c","_id":"@camilo5972/react-native-svg-uri@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"camilo5972","email":"camilo5972@gmail.com"},"dist":{"integrity":"sha512-+zEwg29uqOr2Q9bgRdBCgk+pzlkVoqSVz6x5G4VnBJuJK3Xdy36svs0qVKwl1uTUD2bI9nwyzgCVwsYqfc4EmA==","shasum":"b267890ea95bb41ab4451c5cc571b1e29c056769","tarball":"https://registry.npmjs.org/@camilo5972/react-native-svg-uri/-/react-native-svg-uri-1.0.0.tgz","fileCount":8,"unpackedSize":54055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVY4tCRA9TVsSAnZWagAAx0EP+QGioQOydx+gaYgIzG7j\npsQGt/AT6azQuyHl7HPjohvnugwi4rDOwnJX1ukUeLuEiBayBr/TB9r/fG/o\n1svtbg+VSdyAEz7fg9vzVN7gVYiI0qJDPKznMPKwGP3tjTCviUKIs0vz4TdO\n+Io0kV0YDz6rk/ILPPbLCX0tfiBw4bt1hrx7bWDxf27eZIPiZwWAHVqaWKdL\nWImFsHAMx9EOJdkC3ETqTTKRXMO5Q99+QKgvUM6myr99YczJ7bWCIzWunEqp\nYeyc+s8Td+wBcK42WQ9ujkmddTRStUxzATdhLn4bWEsPfVGerOphH9T42SH+\np1VbJZxqJYb7bwM15NNLkPG4qLpEA6plHyiEsPMZaSbu4V3FwX8PswvmEKF7\n7/xSrNOi0+xMNNqS82q7IIWFDz3uDoAvCTcjubErFbNFvOqubhAIxACFwCC2\n57D16qg4Vbt1WEYIysLj19v91WGEsmCvGRRnzhfuOF2nQLThxaCT3B+P9ikg\nb1GYCBaRT/iht+TxrEDr4QxpDaohU0S2JIi5Wj8SlbZ3pOoAioeLfImWXEJS\nFRI/9dzf46R39MtJpl0MMrB3pBoNLnxC5jGk+OuBnOuAOkzCUjRMXjmKozuJ\n3h2VwuNpwazDHQs6DCq/slr0qbNgAMT0skR0QhukRovSdqpNZCBF/2dzl8xX\nr+8X\r\n=DgY4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDo36p1xiR+4dEJ/X4BsEsC8azD+MPr9bQ+IVGb1uXYwQIgcuAbl2wBHquEPPiri176ZXGwN1jcR4WI1M8J2Nqyo90="}]},"maintainers":[{"name":"camilo5972","email":"camilo5972@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-uri_1.0.0_1565888044855_0.506386255218944"},"_hasShrinkwrap":false},"1.0.1":{"name":"@camilo5972/react-native-svg-uri","version":"1.0.1","description":"Render an SVG Image from an URL","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register"},"repository":{"type":"git","url":"git+https://github.com/camilo5972/react-native-svgUri.git"},"keywords":["react-native","svg","url","uri","http"],"author":{"name":"Matias Cortes"},"license":"ISC","dependencies":{"xmldom":"^0.1.22"},"peerDependencies":{"react-native-svg":"^9.6.2"},"bugs":{"url":"https://github.com/camilo5972/react-native-svgUri/issues"},"homepage":"https://github.com/camilo5972/react-native-svgUri#readme","devDependencies":{"babel-core":"^6.24.1","babel-preset-react-native":"^2.1.0","chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"74517aa702b2fbcb8e4efa0b8a21744d30da3a88","_id":"@camilo5972/react-native-svg-uri@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"camilo5972","email":"camilo5972@gmail.com"},"dist":{"integrity":"sha512-TvKuIveBtHwM+eJXUX8+4xUCr/PDMZkdcs7KfsdQfot2FvtGElBYbD+3kAawCoelnoTi+DfDxwQwrOEAB4vMlw==","shasum":"6dbb38a56ed6f59b91b0e4a3ff9de1609bb9c34f","tarball":"https://registry.npmjs.org/@camilo5972/react-native-svg-uri/-/react-native-svg-uri-1.0.1.tgz","fileCount":8,"unpackedSize":54091,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVagcCRA9TVsSAnZWagAAzWEP/289nz7wU+bCphhOZSTK\n3Xo/HaT+9h0IN4TEGYq/CtO+7UaCC9DK71NcMDTZYV55EFR8rkd0yWHdORlt\npmJoe7FlQRHLbKEm/bmHBHpY6XtzkhHN9+oAScns0bv1RBdVUaAED8MmQC5L\ntOjyDDG0Hv597Tw63sGh3kmXTjicd4yagTebY7+MY2x3N7HwTVuvQH7PHj0V\ngpVbZ+WXrXzCI07Am8BKj6Zvu3Tqn0CNMuKGbQ1KdgX2fqwGg6ypavctul8e\nQqmXYoe9I1e37fbBfop4I+9pk1tg1X3+KlBqNGRPCApLJ7uh8csoOgVGN6s9\nIb3D1X7KJ4x5P+A6hWtep85K04lYssOEebq9erkxF8z1qSDPSA7rfKLD5mlq\nWuKK3Shm+1SQHbicKoL2BMm5/Gh6kv9BE2H3UKcu+FxdevQfGyOhp9+VnRVz\n94IlXGik9RlUpBm+dgldYYUaiyMcVK+05zHi21cbD5Nea8SFSVPYRcKeqAzU\nfK4xnYZak0ufu8tbqg6d3y7aj9JSVBDgyfQ8Efh6ilGfNgYRED6B5DaaSuqh\nRLyQcwA/Yj0Nh+Px6VRJOHlod5z73iwYSjsiRtSrPMNiTkmPFsK0L1AFC8kV\nrUWu1VVmthtj98u+eNzXswBAwFNnlD8YAWrpyW83wAQHSOzMeAx62NCEoKXo\ngXsz\r\n=yaoQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1924VxkZt4EOqWiLCKbr2+rFIVMwRcwLvxX9yik7NqgIhAOQae3XxymHDFI+fvzhn7FnOEQNTrGcqJxlCrZjMmzwc"}]},"maintainers":[{"name":"camilo5972","email":"camilo5972@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-uri_1.0.1_1565894683640_0.0682074317058432"},"_hasShrinkwrap":false},"1.0.2":{"name":"@camilo5972/react-native-svg-uri","version":"1.0.2","description":"Render an SVG Image from an URL","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register"},"repository":{"type":"git","url":"git+https://github.com/camilo5972/react-native-svg-uri.git"},"keywords":["react-native","svg","url","uri","http"],"author":{"name":"Matias Cortes"},"license":"ISC","dependencies":{"xmldom":"^0.1.22"},"peerDependencies":{"react-native-svg":"^5.3.0"},"bugs":{"url":"https://github.com/camilo5972/react-native-svg-uri/issues"},"homepage":"https://github.com/camilo5972/react-native-svg-uri#readme","devDependencies":{"babel-core":"^6.24.1","babel-preset-react-native":"^2.1.0","chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"55a89a6457fc0216d7683a74d06e3414bfd8f723","_id":"@camilo5972/react-native-svg-uri@1.0.2","_nodeVersion":"11.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-gHCXkhNtFfZRaMCxf9+XkqjPl1Kd1CtVVS+sUCnQYrU+oJf8kNgYk5cv/aFDcE+/JpJbGPpR6dfSJlgBJys/uA==","shasum":"7f5d56c3c00a2949f957616bbb0442aaccc6f878","tarball":"https://registry.npmjs.org/@camilo5972/react-native-svg-uri/-/react-native-svg-uri-1.0.2.tgz","fileCount":8,"unpackedSize":54131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJef1+0CRA9TVsSAnZWagAAHXEP/i4kcM8kvQRmyRWHvvOc\nvuoXoH9BFt0OsA6BRm+qvScP7smBsSb8kkvAZj089U6Gi0ZOzRkmPEYShFPE\nl8yXTsfOIW8Lf6/4LWMgzTqhk3Dk75kQ875ffNQVIIlFUUQW7GoihowMF9hf\nNgQKQx2jQYxnbbBwYycHEhUZ2e2x26spcxpN5c7Vr/s4XRX8HJKBiw5iBR/O\nla/UnIAD+TKbIihHc+GxY0xkB9b/PsQHLDt0AS9NeXZYXBY6QrTPSdvyF4Gc\nJ8Zqa5uuX6H8jAo/RozvnwNBXbKNhShz8EvcP5+gitkMAVqvBixwTVDP3xKA\nCrOzJFn7bOeNSIKcw4gse/RzGlpy03jLbaUuGEN6qbCi8xAASG3FHVjgrT2n\n7q2TK+nQgMfxx4J+A7GhgZMNKf10lKzqQd6oDGiW8FJXYW8mfo4UoGMb75Ai\nlhUW0XaYhnT8fZOI7RWANtzfRibeZ6RIspLmjUU2xzSMrtAHKEqyWi8pWKFG\nwYziTFP4ORH+oT+y5NnT+TIeU5em5FA0IpooR+koae8GerDVbOS2mV+LlIDU\nrdR0pGu07JIqg0GH0z34PinKzrRUAGh9ASR5jHBVUPmSrcPosQf+EQ+5FcVk\nEddPWDn0CWxY/ckrODUuQJAGJdizdfmY89HR2+1S/t6Z9fc6uQK/ijPGHIQd\n//vD\r\n=kNHy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEAxU+bH3QZIH+ptiEzpw1+d4LM58Ur9BadcUZcf4YgAiEA+MfFSjCtGCbUaTDcXfOJVYtpMnp5cAqG3hR0Fb97VgY="}]},"maintainers":[{"name":"camilo5972","email":"camilo5972@gmail.com"}],"_npmUser":{"name":"camilo5972","email":"camilo5972@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-uri_1.0.2_1585405875677_0.614300874959774"},"_hasShrinkwrap":false},"1.0.3":{"name":"@camilo5972/react-native-svg-uri","version":"1.0.3","description":"Render an SVG Image from an URL","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register"},"repository":{"type":"git","url":"git+https://github.com/camilo5972/react-native-svg-uri.git"},"keywords":["react-native","svg","url","uri","http"],"author":{"name":"Matias Cortes"},"license":"ISC","dependencies":{"xmldom":"^0.1.22"},"peerDependencies":{"react-native-svg":"^5.3.0"},"bugs":{"url":"https://github.com/camilo5972/react-native-svg-uri/issues"},"homepage":"https://github.com/camilo5972/react-native-svg-uri#readme","devDependencies":{"babel-core":"^6.24.1","babel-preset-react-native":"^2.1.0","chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"d5adb4326097cb903c263fae34ac8d2b2e969131","_id":"@camilo5972/react-native-svg-uri@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"camilo5972","email":"camilo5972@gmail.com"},"dist":{"integrity":"sha512-zpwUHBvYXiRb6+C/7lM121PHoFH4g1dixcLeCjBOaX4Rgnv/muGQ9wmohCtCbJZxqycsm9MGANwZTs+95f66Kw==","shasum":"1f643d45573ed02e3fd37dce407c33f0eaa7b9cf","tarball":"https://registry.npmjs.org/@camilo5972/react-native-svg-uri/-/react-native-svg-uri-1.0.3.tgz","fileCount":8,"unpackedSize":54180,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfndv2CRA9TVsSAnZWagAARdEP/3JkePGcN2wmWBhzf96D\nXV/hFLg1mQQAtrgKuT1b+LShq/WN3n3/kdZt6+dhjrqE9RNlx0uRwchxpVS2\nVmE5FRbmyLfnCYgb370yu1q9tBOPITTdvt3+9N8nWZXVxhezVxt+Yv9d6Gfx\nFdVxa4XAS2fT2yDg8MRv2ByJtTEfMa5Kj9qR2hbUObqO+ReGUe4ycKT3439J\nuf6zCr3FsQcOWqMshgJ+Xrqnfww+eEMGD44K5nRvjt2frLKYYhTuxQMWPj47\nXsrSv1mkzcIwZZAyKiHp9qdoi1zXnDEQjd2Ib5/i09Iu3mQz+yPEYoVP7lgI\n1bOELmzGGuT+Q7RU9KujC/oRiO8nspkOEz2JJtcDyPsjwC+AEAQxc5eusgKG\nd+LRHnGTQG//c3O73E/M3WwiAo1WV9I8y9LzNBjRTSoAxNCQx9IUIGkyf5T8\nCAIUiOqfq2dQEDmqSxhiW/iytFKxx4aN0cwhCWB2JHKPMLVi3GqXX9pUx6Te\n99suLSeryUY1oUb/eQ9tfSQ9/HSzC9NUaFAYqtRa/AP7SsJ7Vj2mYy7nmER1\nDjaJHdR6AVeT6D8dxtZs+UfIteeZZIhaG0kMp1FdQuUcx0j7I3RhyVY+dsmL\nB+XZ4W5Q+9Fx4uTMm29vREctpDeQDBlVUABgVOcfjyjowS94Aq5tCjgmP8Bs\nfyKq\r\n=qg4Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUTFMmIYQEfUjj5o0Tt22SkYI0sxjgRtyq8ImC18J0LAiA7FLXxOIH1ioHxmV3hLTIVEOK5++Rf/POvaEcmAUyk6A=="}]},"maintainers":[{"name":"camilo5972","email":"camilo5972@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-uri_1.0.3_1604180982186_0.4804777304929009"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-15T16:54:04.652Z","1.0.0":"2019-08-15T16:54:05.019Z","modified":"2022-04-04T21:34:17.619Z","1.0.1":"2019-08-15T18:44:43.778Z","1.0.2":"2020-03-28T14:31:15.790Z","1.0.3":"2020-10-31T21:49:42.352Z"},"maintainers":[{"name":"camilo5972","email":"camilo5972@gmail.com"}],"description":"Render an SVG Image from an URL","homepage":"https://github.com/camilo5972/react-native-svg-uri#readme","keywords":["react-native","svg","url","uri","http"],"repository":{"type":"git","url":"git+https://github.com/camilo5972/react-native-svg-uri.git"},"author":{"name":"Matias Cortes"},"bugs":{"url":"https://github.com/camilo5972/react-native-svg-uri/issues"},"license":"ISC","readme":"# react-native-svg-uri\nRender SVG images in React Native from an URL or a static file\n\nThis was tested with RN 0.33 and react-native-svg 4.3.1 (depends on this library)\n[react-native-svg](https://github.com/react-native-community/react-native-svg)\n\n\nNot all the svgs can be rendered, if you find problems fill an issue or a PR in\norder to contemplate all the cases\n\nInstall library from `npm`\n\n```bash\nnpm install react-native-svg-uri --save\n```\n\nLink library react-native-svg\n\n```bash\nreact-native link react-native-svg # not react-native-svg-uri !!!\n```\n\n## Props\n\n| Prop | Type | Default | Note |\n|---|---|---|---|\n| `source` | `ImageSource` |  | Same kind of `source` prop that `<Image />` component has\n| `svgXmlData` | `String` |  | You can pass the SVG as String directly\n| `fill` | `Color` |  | Overrides all fill attributes of the svg file\n| `fillAll` | `Boolean` |  Adds the fill color to the entire svg object\n\n## Known Bugs\n\n- [ANDROID] There is a problem with static SVG file on Android,\n  Works OK in debug mode but fails to load the file in release mode.\n  At the moment the only workaround is to pass the svg content in the svgXmlData prop.\n\n## <a name=\"Usage\">Usage</a>\n\nHere's a simple example:\n\n```javascript\nimport SvgUri from 'react-native-svg-uri';\n\nconst TestSvgUri = () => (\n  <View style={styles.container}>\n    <SvgUri\n      width=\"200\"\n      height=\"200\"\n      source={{uri:'http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg'}}\n    />\n  </View>\n);\n```\n\nor a static file\n\n```javascript\n<SvgUri width=\"200\" height=\"200\" source={require('./img/homer.svg')} />\n```\n\nThis will render:\n\n![Component example](./screenshoots/sample.png)\n\n## Testing\n1. Make sure you have installed dependencies with `npm i`\n2. Run tests with `npm test`\n","readmeFilename":"README.md"}