{"id":21659135,"url":"https://github.com/chitezh/react-native-svg-image","last_synced_at":"2025-07-17T22:31:26.170Z","repository":{"id":57340510,"uuid":"82839605","full_name":"chitezh/react-native-svg-image","owner":"chitezh","description":"Load SVG images from network; Does not work with local svgs","archived":true,"fork":false,"pushed_at":"2017-10-05T20:44:59.000Z","size":2246,"stargazers_count":53,"open_issues_count":7,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-19T16:59:38.108Z","etag":null,"topics":["react-native","svg","svg-images"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chitezh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-22T18:37:41.000Z","updated_at":"2023-06-11T15:04:59.000Z","dependencies_parsed_at":"2022-09-11T10:40:47.412Z","dependency_job_id":null,"html_url":"https://github.com/chitezh/react-native-svg-image","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitezh%2Freact-native-svg-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitezh%2Freact-native-svg-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitezh%2Freact-native-svg-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitezh%2Freact-native-svg-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chitezh","download_url":"https://codeload.github.com/chitezh/react-native-svg-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305589,"owners_count":17603845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["react-native","svg","svg-images"],"created_at":"2024-11-25T09:30:32.444Z","updated_at":"2024-11-25T09:31:55.773Z","avatar_url":"https://github.com/chitezh.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-native-svg-image\n\n## Load SVG images from network(It does not work with local svg files at the moment)\n\nSimple SVG image renderer with progress loader\n\nEver had challenges loading SVGs from network using [react-native-svg](https://github.com/react-native-community/react-native-svg) or [react-native-svg-uri](https://github.com/matc4/react-native-svg-uri)?\nThis simple package is worth a try.\n\n## Installation\n\n```\nnpm install react-native-svg-image --save\n\n```\n\n## Props\n\n| Prop | Type | Note |\n|---|---|---|\n| `source` | `ImageSource` | An object containing the svg image `uri`\n| `style` | `WebView` style | This extends [WebView](https://facebook.github.io/react-native/docs/webview.html) styles\n| `\u003cany` | `WebView` props | Any other WebView prop(s)\n\n## \u003ca name=\"Usage\"\u003eUsage\u003c/a\u003e\n\n```javascript\nimport SVGImage from 'react-native-svg-image';\n\nconst SVGImageComponent = () =\u003e (\n  \u003cView style={{ flex: 1 }}\u003e\n    \u003cSVGImage\n      style={{ width: 80, height: 80 }}\n      source={{uri:'https://fluent-panda.appspot.com.storage.googleapis.com/dumbbell.svg'}}\n    /\u003e\n  \u003c/View\u003e\n);\n```\n\n## Shots\n\n\u003cimg src=\"https://raw.githubusercontent.com/chitezh/react-native-svg-image/master/shots/react-native-svg.gif\" width=\"280\"\u003e\n\n## Dev\n\nLint \u0026 test (todo)\n\n```\n\nnpm test\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchitezh%2Freact-native-svg-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchitezh%2Freact-native-svg-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchitezh%2Freact-native-svg-image/lists"}