{"_id":"@allsquare/react-native-svg-uri","_rev":"4-85c7e6036c03ec13f0ed7938d116e9d9","name":"@allsquare/react-native-svg-uri","dist-tags":{"latest":"1.2.5"},"versions":{"1.2.4":{"name":"@allsquare/react-native-svg-uri","version":"1.2.4","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/matiascba/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/matiascba/react-native-svg-uri/issues"},"homepage":"https://github.com/matiascba/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"},"_id":"@allsquare/react-native-svg-uri@1.2.4","dist":{"shasum":"525e8b8deea91002693eb3d700634e7a8d6d6b87","tarball":"https://registry.npmjs.org/@allsquare/react-native-svg-uri/-/react-native-svg-uri-1.2.4.tgz","integrity":"sha512-LrG1xJr134ZxBIRrSz2+j7DL12WrS62aq3rsvP4xIQ9DiU/qA3JJuE1LRfF7ocYUL2txOTlE5XTUoFyVYlmw7Q==","fileCount":11,"unpackedSize":54406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbu07QCRA9TVsSAnZWagAACk8QAI2TyWdPnHfSvbgyU2bJ\n7Tunhh1ImP3IibVQVhNwEBbirIFXn67ynUY42et2+5Vr2RYQUsae5fuIWOyw\nCZwSGPrpacOH8+6wgsPw4N4JRDSEalO986LhvumJPz9qOxKvfdzKdQjBKJQz\nTaVhE0hoD1HUpF09hP5jQ5vmetwZ+nniWD6eEolgU/sDROoneqGYDIwbTLYP\nRuPlV9qy1gt8u0uHOCEDo8HJV25TNQKzVW6fNP2ss4YHMIkoj8w3k81ded9x\nw5LItBE1ii2g8jE3WVR8u3rk+EudiwJ1Tzgvi6zPONFKLGTbdlm62efzz41D\nfqt3nQKqSRvlzA9RJ43CxGGRAmcvtDPMobSiUQkC5vXaBBnp7fKHqRcMu7Pt\nLjBINj6qx8Am7NDUG7Xqz/ri3YQ9rYXYOKpBnD4bek5c+xyFDQhvx+klbOSi\nKgFF3Dc30Ui6OGsuX3HJwMSxAoqsTg9egwp9aoGHTD7NRd5965rcN5ykcDsI\nboEiUw8nHJMyKhC2WX4vSp4oJvMr/Yl9LBQitgDYKE6aq4lzU+cgHucFyJYN\nBvXVTBrmerF2HCN7n4Oow/1RRbuygzKzYk3pFlpnMJvKxNBgMXRgqMpLeFyS\nb0fjmeQU2YX8dSLDUBhsAL8NwhtPyFiRq7TS5oqpLDyzWhPdAxZxHbbTO+ri\n2+8g\r\n=OB9h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEqAvm7J9gDp5HRZt6wBmJ4AMTyaEgdKIyGaEt4PLaWBAiEAvBsXXYCvxoxKueyjHoFEGCqEf7PMzrzZefyP99A1Yik="}]},"maintainers":[{"name":"jordanbecker","email":"jordan@becker.io"}],"_npmUser":{"name":"jordanbecker","email":"jordan@becker.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-uri_1.2.4_1539002063574_0.4204620677316371"},"_hasShrinkwrap":false},"1.2.5":{"name":"@allsquare/react-native-svg-uri","version":"1.2.5","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/allsquare/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/allsquare/react-native-svg-uri/issues"},"homepage":"https://github.com/allsquare/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"},"_id":"@allsquare/react-native-svg-uri@1.2.5","dist":{"shasum":"555814cdd208ff5881450af155d8491dfc337611","tarball":"https://registry.npmjs.org/@allsquare/react-native-svg-uri/-/react-native-svg-uri-1.2.5.tgz","integrity":"sha512-RMHXTeJlv6dHoD0T9l90lGgrI6JSMRhjCw7ICkjYfyozBn4MO3cMLoT1X0N+DKXcxj/xJTxpPTyD7KUp7yg6RA==","fileCount":11,"unpackedSize":54406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbu1gTCRA9TVsSAnZWagAAzk4P/1dMyAN1abCh6ay8kSlU\nVY56jWPJxBR+h+XrF6diZxbRVlVpO+6syyRbJfQ57Makm9HN/LufZCvpU8wq\n+F4uoAsFsFOMbUaV4XXUKZ441lfal3gqXyzbjJ/R2DpT5Cgg+qbbr67+j5rp\nHTw7XiRBT7FMGH468A+LVc/kj9cRQYD0e5A+Ts20hGqQnp+2923/bwpJ3FfY\naLgixq71fWtnBfJs2P+SnsBdtDQtDNr0IFJ1PBmHb9rmbDnQxuBxXBLGRoXu\n+9/7dxgUPxZwQfJA6hFq1+lElrRn35PWgFoovdHUWWuibKlyKsVNyrgAtD3K\nv9d6HbzZvtr+p33DWl/zn8OWrDZrT4W7MF8stBkKSnb32Isu1EEGm8+idniT\nIf6Hw0JCggfMq59KRFgU7pYppK/jRJLzeJLaE8jm7U7HVMnew3C4AoVqiKgG\nbfbOBYppj+UGLvSpuj3mE/lWiRkeKoGL3+sW922Cz6ZDjHgN/j/kqto5FnE2\n5JpO1w6pFH/N3rN/GpTFtRiMK/sSc0kC/PHzuIOnQZ6r/bxvNAI+sW1uri65\nDVTEE1ZCL87yIt+whkV3NdqF6J2K0O52dPuf9el6+A7LGQbClmU/pGAcUtCx\n27B9z2Hdkh+EE6i7y2s0cF41FStJmlTncEcmzn9YwMp/rgDG6ruo6RarF+hD\nPHdV\r\n=DPzJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0UIOlD1cvxaFJExlLK6RZG80zSsq6/0Hmm2jlv2DxhwIgF2352z/Pe04VNrU/sbNwZN5B2RUopT0WONc7AlrJ1sM="}]},"maintainers":[{"name":"jordanbecker","email":"jordan@becker.io"}],"_npmUser":{"name":"jordanbecker","email":"jordan@becker.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-uri_1.2.5_1539004435117_0.8862206590003592"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-08T12:34:23.493Z","1.2.4":"2018-10-08T12:34:23.720Z","modified":"2022-04-04T13:34:46.728Z","1.2.5":"2018-10-08T13:13:55.240Z"},"maintainers":[{"email":"jordanbeckerfr@gmail.com","name":"habovh"}],"description":"Render an SVG Image from an URL","homepage":"https://github.com/allsquare/react-native-svg-uri#readme","keywords":["react-native","svg","url","uri","http"],"repository":{"type":"git","url":"git+https://github.com/allsquare/react-native-svg-uri.git"},"author":{"name":"Matias Cortes"},"bugs":{"url":"https://github.com/allsquare/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| `width` | `Number` | | Define rendered component height\n| `height` | `Number` | | Define rendered component height\n| `viewBox` | `String` | | Allows to override the `viewBox` property from the provided SVG.\n| `onLoad` | `Function` | | Called after component is mounted with SVG ready. Does not provides any parameter.\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"}