{"id":14036097,"url":"https://github.com/kristerkari/react-native-svg-example","last_synced_at":"2025-04-04T22:05:57.091Z","repository":{"id":38960941,"uuid":"143345648","full_name":"kristerkari/react-native-svg-example","owner":"kristerkari","description":"A simple example app that shows how you can use SVG files in React Native","archived":false,"fork":false,"pushed_at":"2024-11-25T20:08:03.000Z","size":4468,"stargazers_count":37,"open_issues_count":11,"forks_count":148,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T21:05:57.282Z","etag":null,"topics":["demo-app","example","react-native","svg"],"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/kristerkari.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-02T21:15:37.000Z","updated_at":"2024-10-14T09:01:35.000Z","dependencies_parsed_at":"2023-12-11T18:26:08.121Z","dependency_job_id":"46734aa8-64d8-4744-99da-67d512843d68","html_url":"https://github.com/kristerkari/react-native-svg-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Freact-native-svg-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Freact-native-svg-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Freact-native-svg-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Freact-native-svg-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristerkari","download_url":"https://codeload.github.com/kristerkari/react-native-svg-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256110,"owners_count":20909240,"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":["demo-app","example","react-native","svg"],"created_at":"2024-08-12T03:01:50.051Z","updated_at":"2025-04-04T22:05:57.069Z","avatar_url":"https://github.com/kristerkari.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# React Native SVG demo\n\n![Platform - Android, iOS and Web](https://img.shields.io/badge/platform-Android%20%7C%20iOS%20%7C%20Web-blue.svg)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)\n\nA simple example app that shows how you can use SVG files in React Native.\n\nThe SVG images used in this app can be found from the [logos](/logos) folder.\n\n## How does it work?\n\nThe `.svg` files can be imported inside a React component:\n\n```jsx\nimport Logo from './logo.svg';\n```\n\nThe images can then be used as a component:\n\n```jsx\n\u003cLogo width={120} height={40} /\u003e\n```\n\n## Try it\n\n### Step 1: Install depencies to run React Native\n\nMake sure that you have `react-native-cli` installed (`npm install -g react-native-cli`) and [XCode](https://developer.apple.com/xcode/) (for iOS development) / [Android Studio](https://developer.android.com/studio/index.html) (for Android development) installed and working.\n\n- Go to \"Building Projects with Native Code\" tab and follow the guide: https://facebook.github.io/react-native/docs/getting-started.html\n\n### Step 2: Clone the repo and move to project\n\n```sh\ngit clone git@github.com:kristerkari/react-native-svg-example.git\ncd react-native-svg-example\n```\n\n### Step 3: Install example app's dependencies\n\n```sh\nnpm install\n```\n\n### Step 4: Run React Native packager\n\nYou can open a new terminal tab to run React Native's packager.\n\n```sh\nnpm start\n```\n\n### Step 5: Run app on Android or iOS\n\nFirst make sure that your Android emulator or iOS simulator is working, then:\n\n```sh\nnpm run ios\n```\n\nor\n\n```sh\nnpm run android\n```\n\nor\n\n```sh\nnpm run web\n```\n\n## Screenshots\n\n**iOS - Android - Web**\n\n\u003cimg src=\"screenshots/ios.png\" width=\"33.3333%\"\u003e\u003cimg src=\"screenshots/android.png\" width=\"33.3333%\"\u003e\u003cimg src=\"screenshots/web.png\" width=\"33.3333%\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristerkari%2Freact-native-svg-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristerkari%2Freact-native-svg-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristerkari%2Freact-native-svg-example/lists"}