{"id":13838902,"url":"https://github.com/vault-development/react-native-svg-uri","last_synced_at":"2026-04-03T23:01:21.033Z","repository":{"id":10542084,"uuid":"66114930","full_name":"vault-development/react-native-svg-uri","owner":"vault-development","description":"Render SVG images in React Native from an URL or static file","archived":false,"fork":false,"pushed_at":"2022-04-23T21:44:14.000Z","size":105,"stargazers_count":849,"open_issues_count":107,"forks_count":328,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-03-24T04:19:49.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vault-development.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-19T21:58:56.000Z","updated_at":"2026-03-17T21:36:48.000Z","dependencies_parsed_at":"2022-08-07T05:15:53.079Z","dependency_job_id":null,"html_url":"https://github.com/vault-development/react-native-svg-uri","commit_stats":null,"previous_names":["matiascba/react-native-svg-uri"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vault-development/react-native-svg-uri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vault-development%2Freact-native-svg-uri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vault-development%2Freact-native-svg-uri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vault-development%2Freact-native-svg-uri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vault-development%2Freact-native-svg-uri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vault-development","download_url":"https://codeload.github.com/vault-development/react-native-svg-uri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vault-development%2Freact-native-svg-uri/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31355826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T08:03:20.796Z","status":"ssl_error","status_checked_at":"2026-04-03T08:00:37.834Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T16:00:37.949Z","updated_at":"2026-04-03T23:01:20.580Z","avatar_url":"https://github.com/vault-development.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Image"],"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 `\u003cImage /\u003e` 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## \u003ca name=\"Usage\"\u003eUsage\u003c/a\u003e\n\nHere's a simple example:\n\n```javascript\nimport SvgUri from 'react-native-svg-uri';\n\nconst TestSvgUri = () =\u003e (\n  \u003cView style={styles.container}\u003e\n    \u003cSvgUri\n      width=\"200\"\n      height=\"200\"\n      source={{uri:'http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg'}}\n    /\u003e\n  \u003c/View\u003e\n);\n```\n\nor a static file\n\n```javascript\n\u003cSvgUri width=\"200\" height=\"200\" source={require('./img/homer.svg')} /\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvault-development%2Freact-native-svg-uri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvault-development%2Freact-native-svg-uri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvault-development%2Freact-native-svg-uri/lists"}