{"_id":"@allsquare/react-native-svg-from-uri","_rev":"4-7afcdce9f356dbe5980e20d23f37a70d","name":"@allsquare/react-native-svg-from-uri","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.3":{"name":"@allsquare/react-native-svg-from-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"},"keywords":["react-native","svg","url","uri","http"],"author":{"name":"Jordan Becker"},"license":"ISC","dependencies":{"xmldom":"^0.1.22"},"peerDependencies":{"react-native-svg":"^6.3.1"},"bugs":{"url":"https://github.com/allsquare/react-native-svg-from-uri/issues"},"homepage":"https://github.com/allsquare/react-native-svg-from-uri#readme","devDependencies":{"babel-core":"^6.24.1","babel-preset-react-native":"^2.1.0","chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"4172f838dccd7b9f5d15616937c1196729ad7d1c","_id":"@allsquare/react-native-svg-from-uri@1.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"jordanbecker","email":"jordan@becker.io"},"dist":{"integrity":"sha512-aZ0rcJadcTsoRRIwUHJJGmqIw4mj7i1L7bF4/ECgOCw9CMglG+ccCY2wVeDWo0iVRxfnB9jhlj/lph02UWwFpg==","shasum":"d75f94375a65d14423e624110bec3bf1df42ff24","tarball":"https://registry.npmjs.org/@allsquare/react-native-svg-from-uri/-/react-native-svg-from-uri-1.0.3.tgz","fileCount":9,"unpackedSize":17847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiW3UCRA9TVsSAnZWagAAVbwP/24UStparST14ZXsPWlt\n4SVVkeq0lDsKeNB92wXrufCATK1n3lJz6bac2E71Sw+NAkCZiALb4ptWSDC3\npvyc8h/BnCSixCB+JmXnFPt63Lx6IOUUSPH8kgvk/LXGXtEKTSxGXYRx+6qz\n+Y40oIxsPVPiZ6u1gQaVcafdPi1rYxohOqCxkx6viJkzVVHv+DAxcJXqrD7K\npKTbPmQV7mE+mctVV09nHvzNzFTIJket0iyzGuNbd+tEdbK+BEjflwJx9ODp\nb50WI+jae+aPxd3Fj9neG7Sw771oeNuKI9xYmvuLo/qUQY9PJoTxPMYwXkuZ\nl33tO2q7cQEP6FmAKc+Wy9aApGuxSygWu6V4NMHtf3hVx2fp1BKYutHr9prH\nATsmBzpibYhs0JNcdG4JcCowP2fclK1EEb31n+igi6sWZJfjz0utRnSJA6Os\ns3RzUQtmCZvpA2RSYnyBpqltRdRz+Xfblct+3K/tgmOKEtZdtFqU/mbKls0i\nFHqXqZ3yw97WesDE49IrJkgCeMfIlZmgwJB4s3pm2gTZeJc3Z/HUGtn0nZdg\nfW7hZIfxYrnKz17j/O5QQaOlC6F5BQadVB5RDMHVcq7yd4qzSkNRtEKIVMyF\n1q2fVTdXD56fjmAy2FfhqJfOKKKamquSofE4PaUFxKN9uvRtE8ZSeaZX3U7T\n8cR+\r\n=/ePR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXKF673KjuboBx+kgv20KggsW7sgO07CIo9uNOnNI9jAIgaiqjECR3jBF7ieFJ/j+D1GmxCqowjQWy0lDcytAOGQg="}]},"maintainers":[{"name":"jordanbecker","email":"jordan@becker.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-from-uri_1.0.3_1535733203991_0.04770470913359692"},"_hasShrinkwrap":false},"1.0.4":{"name":"@allsquare/react-native-svg-from-uri","version":"1.0.4","description":"Render an SVG Image from an URL","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register"},"keywords":["react-native","svg","url","uri","http"],"author":{"name":"Jordan Becker"},"license":"ISC","dependencies":{"xmldom":"^0.1.22"},"peerDependencies":{"react-native-svg":"^6.3.1"},"bugs":{"url":"https://github.com/allsquare/react-native-svg-from-uri/issues"},"homepage":"https://github.com/allsquare/react-native-svg-from-uri#readme","devDependencies":{"babel-core":"^6.24.1","babel-preset-react-native":"^2.1.0","chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"94681c602d35e1d521e61aef1719a12c374f8260","_id":"@allsquare/react-native-svg-from-uri@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"jordanbecker","email":"jordan@becker.io"},"dist":{"integrity":"sha512-jWyXrlMDCsXXjpWAFfXo4gCvxoRY5xOC8ADvSmx5hoB4CQJzy74MOvN15ryA3xt5J4zdbmx+qn39A/k37SfRjQ==","shasum":"ff3a02a4a72524c36221a3e766386cf06da0df28","tarball":"https://registry.npmjs.org/@allsquare/react-native-svg-from-uri/-/react-native-svg-from-uri-1.0.4.tgz","fileCount":9,"unpackedSize":17846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiW9DCRA9TVsSAnZWagAACGkP/010qFW88sc5Z2CrqxCM\n47OOON/8hDE8nJXPp3JjzHayCZjM+NDsmh8aaOpywcL784t7jPC0yZxYowSG\nlTh7JX0mSIf3ev0Y5X1dBn9Xs6HcfW7sRoe+WwthEq/H2p8crgXsgwQbou8/\n6OFr5eV3H9s8yQ/xR6tNHQJ8JYwul32vDE/9XJ4mOTom4du1sP9+o5Bh5/6r\ngoezkKUjKuj828KFshuN6lxn1uvzquPoUGjm1I5aqRJI8i3RC5QFz1EXEpjg\nAvSA157Ubmx/oQBrcTmcyBn0Vfi+RrlmpQdOStgmrnCms5nKFW/RZhUnerAY\nl/zfJq088BKfDBXU5/uejygdWY7ywIXhy0LkiprRzm9IzFMUOVEhu5O5tgOg\nFz8MyyU/tpwMDWvjCnxYwy8B4kjPtiYZR5IJWvtbEkWAAr0FOayYEYpwepny\nRXHRxRYOn2n93QXGj741xtX9HSpeTvwu1c6RgM8tJEMcDbJ4B2QRbtcKoboV\ny4LTz6LS/QSOWPcMeaT01lMikThV4hrdlF+k0rCNtHdvHZ11e4/c5PcPGwOG\n1Z5/nbWHrQonmEsNIuuhCDNY1/8LHms3OHkVwS4bAqHm3PVduof7Me864XP0\nZ6ZcV45rCHiok93or+lGmtt+MRUBBGmLEeX15MIWF0Y6BWg8epNM474twFRa\nYydX\r\n=jU3O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmbkfDWMMp6k4M4xFlR23ldSJFdD+4sFIysPlbUD34kAIhALYQ3sCgMvEVwogAW5XhbNyaiDBEZFtyVFYWESQzakyI"}]},"maintainers":[{"name":"jordanbecker","email":"jordan@becker.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-from-uri_1.0.4_1535733571023_0.788485586238336"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-31T16:33:23.907Z","1.0.3":"2018-08-31T16:33:24.258Z","modified":"2022-04-04T13:34:46.267Z","1.0.4":"2018-08-31T16:39:31.269Z"},"maintainers":[{"email":"jordanbeckerfr@gmail.com","name":"habovh"}],"description":"Render an SVG Image from an URL","homepage":"https://github.com/allsquare/react-native-svg-from-uri#readme","keywords":["react-native","svg","url","uri","http"],"author":{"name":"Jordan Becker"},"bugs":{"url":"https://github.com/allsquare/react-native-svg-from-uri/issues"},"license":"ISC","readme":"# react-native-svg-from-uri\n\n> This is a fork of the unmaintained [react-native-svg-uri](https://github.com/vault-development/react-native-svg-uri) library, originally written by Matias Cortes.\n\nRender SVG images in React Native from an URL or a static file\n\nThis was tested with RN 0.52.0 and [react-native-svg](https://github.com/react-native-community/react-native-svg) 6.3.1, which this library depends on.\n\n## Installation\n\nInstall library from `npm`\n\n```bash\nnpm install react-native-svg-from-uri --save\n```\n\nLink the **react-native-svg** library\n\n```bash\nreact-native link react-native-svg # not react-native-svg-from-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\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* Not all the svgs can be rendered, if you find problems fill an issue or a PR in\n  order to contemplate all the cases\n\n## Usage\n\nHere's a simple example:\n\n```javascript\nimport SvgUri from \"react-native-svg-from-uri\";\n\nconst TestSvgUri = () => (\n  <View style={styles.container}>\n    <SvgUri\n      width=\"200\"\n      height=\"200\"\n      source={{\n        uri: \"http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg\"\n      }}\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](./screenshots/sample.png)\n\n## Testing\n\n1.  Make sure you have installed dependencies with `yarn`\n2.  Run tests with `yarn test`\n","readmeFilename":"README.md"}