{"id":28795589,"url":"https://github.com/bakerface/react-native-svg-web","last_synced_at":"2025-10-10T11:34:44.851Z","repository":{"id":51258115,"uuid":"91889654","full_name":"bakerface/react-native-svg-web","owner":"bakerface","description":"A web replacement for react-native-svg","archived":false,"fork":false,"pushed_at":"2023-01-26T19:47:33.000Z","size":27,"stargazers_count":45,"open_issues_count":7,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T23:48:58.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bakerface.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":"2017-05-20T13:04:28.000Z","updated_at":"2025-03-31T03:27:47.000Z","dependencies_parsed_at":"2023-02-14T22:30:38.884Z","dependency_job_id":null,"html_url":"https://github.com/bakerface/react-native-svg-web","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bakerface/react-native-svg-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Freact-native-svg-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Freact-native-svg-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Freact-native-svg-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Freact-native-svg-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakerface","download_url":"https://codeload.github.com/bakerface/react-native-svg-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Freact-native-svg-web/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477930,"owners_count":23015066,"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":[],"created_at":"2025-06-18T03:09:29.211Z","updated_at":"2025-10-10T11:34:44.833Z","avatar_url":"https://github.com/bakerface.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-svg-web\n[![npm version](https://badge.fury.io/js/react-native-svg-web.svg)](http://badge.fury.io/js/react-native-svg-web)\n[![downloads](http://img.shields.io/npm/dm/react-native-svg-web.svg)](https://www.npmjs.com/package/react-native-svg-web)\n\nThis package can be used as a drop-in replacement for [react-native-svg](https://github.com/react-native-community/react-native-svg) when targeting the web, or as a mock for [jest](https://github.com/facebook/jest) when testing react-native applications.\n\n### Targeting the Web\n\nAdd the following to your webpack configuration:\n\n``` javascript\nmodule.exports = {\n  ..., /* the existing configuration */\n\n  resolve: {\n    alias: {\n      'react-native-svg': 'react-native-svg-web'\n    }\n  }\n};\n```\n\n### Mocking with Jest\n\nAdd the following to your `package.json`.\n\n``` json\n{\n  \"jest\": {\n    \"setupFiles\": [\n      \"./jest/mocks/react-native-svg.js\"\n    ]\n  }\n};\n```\n\nAnd then create a file `./jest/mocks/react-native-svg.js`:\n\n``` javascript\njest.mock('react-native-svg', () =\u003e require('react-native-svg-web'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakerface%2Freact-native-svg-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakerface%2Freact-native-svg-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakerface%2Freact-native-svg-web/lists"}