{"id":28494507,"url":"https://github.com/ingenuity-ph/react-native-svg-animations","last_synced_at":"2025-07-31T11:12:40.351Z","repository":{"id":134905370,"uuid":"119013866","full_name":"ingenuity-ph/react-native-svg-animations","owner":"ingenuity-ph","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-26T07:48:51.000Z","size":1574,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-30T03:42:54.928Z","etag":null,"topics":["animations","es6","javascript","react","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ingenuity-ph.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-26T06:18:21.000Z","updated_at":"2018-01-26T06:27:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"95a2e6c3-9f7b-4302-84c8-a11cc308400d","html_url":"https://github.com/ingenuity-ph/react-native-svg-animations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ingenuity-ph/react-native-svg-animations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingenuity-ph%2Freact-native-svg-animations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingenuity-ph%2Freact-native-svg-animations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingenuity-ph%2Freact-native-svg-animations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingenuity-ph%2Freact-native-svg-animations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ingenuity-ph","download_url":"https://codeload.github.com/ingenuity-ph/react-native-svg-animations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingenuity-ph%2Freact-native-svg-animations/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268027705,"owners_count":24183687,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["animations","es6","javascript","react","react-native","svg"],"created_at":"2025-06-08T10:06:56.210Z","updated_at":"2025-07-31T11:12:40.333Z","avatar_url":"https://github.com/ingenuity-ph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-svg-animations [![npm version](https://badge.fury.io/js/react-native-svg-animations.svg)](https://badge.fury.io/js/react-native-svg-animations)\n\n\u003e SVG Animations wrapper for react-native. Based on examples from this project: https://github.com/ethantran/react-native-examples\n\n## Dependencies\n\n* `svg-path-properties` \n* `react-native-svg`\n\n## Installation\n\n```\n$ npm i react-native-svg-animations --save\n```\n\n## Demo\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cstrong\u003eAnimatedSVGPath\u003c/strong\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cstrong\u003eAnimatedSVGPaths\u003c/strong\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/73R3WY/react-native-svg-animations/master/examples/HiSVG/hi_1.gif\" width=\"300\"\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/73R3WY/react-native-svg-animations/master/examples/IngenuityPreloaderSVG/preloader_1.gif\" width=\"300\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage\n\nThis package contains wrapper components for displaying animated SVG in react-native, currently, this contains the following:\n* AnimatedSVGPath\n* AnimatedSVGPaths\n\n###### AnimatedSVGPath\n\nComponent to display a single animated SVG Path.\nSee \u003ca href=\"https://github.com/73R3WY/react-native-svg-animations/tree/master/examples/HiSVG\"\u003eHi example\u003c/a\u003e for the complete implementation.\n\n\u003cimg src=\"https://raw.githubusercontent.com/73R3WY/react-native-svg-animations/master/examples/HiSVG/hi_2.gif\" width=\"300\"\u003e\n\n```javascript\nimport { AnimatedSVGPath } from 'react-native-svg-animations';\n```\n\n...\n\n```javascript\n  \u003cView\u003e\n    \u003cAnimatedSVGPath\n      strokeColor={\"green\"}\n      duration={500}\n      strokeWidth={10}\n      height={400}\n      width={400}\n      scale={0.75}\n      delay={100}\n      d={d}\n    /\u003e\n  \u003c/View\u003e\n```\n\nwhere the properties are:\n* `d` - the SVG Path to be animated. (required)\n* `strokeColor` - the color of the path stroke. (defaults to black)\n* `strokeWidth` - the thickness of the path stroke. (defaults to 1)\n* `height` - the height of the base SVG. (defaults to screen viewport height)\n* `width` - the width of the base SVG. (defaults to screen viewport width)\n* `scale` - the scale of the output SVG based on the width and height of the base SVG. (defaults to 1.0 or 100%)\n* `delay` - time in `ms` before starting animation. (defaults to 1000ms or 1s)\n* `duration` - time in `ms` to complete the path drawing from starting point to ending point. (defaults to 1000ms or 1s)\n* `fill` - the color fill of the closed path. (defaults to none)\n\n###### AnimatedSVGPaths\n\nComponent to display a multiple animated SVG Paths.\nSee \u003ca href=\"https://github.com/73R3WY/react-native-svg-animations/tree/master/examples/IngenuityPreloaderSVG\"\u003eIngenuity preloader example\u003c/a\u003e for the complete implementation.\n\n\u003cimg src=\"https://raw.githubusercontent.com/73R3WY/react-native-svg-animations/master/examples/IngenuityPreloaderSVG/preloader_2.gif\" width=\"300\"\u003e\n\n```javascript\nimport { AnimatedSVGPaths } from 'react-native-svg-animations';\n```\n\n...\n\n```javascript\n  \u003cView\u003e\n    \u003cAnimatedSVGPaths\n      strokeColor={\"red\"}\n      strokeWidth={5}\n      duration={10000}\n      height={600}\n      width={600}\n      scale={0.5}\n      delay={100}\n      ds={ds}\n    /\u003e\n  \u003c/View\u003e\n```\n\nwhere the properties are:\n* `ds` - the SVG Paths to be animated, must be an array. (required)\n* `strokeColor` - the color of the path stroke. (defaults to black)\n* `strokeWidth` - the thickness of the path stroke. (defaults to 1)\n* `height` - the height of the base SVG. (defaults to screen viewport height)\n* `width` - the width of the base SVG. (defaults to screen viewport width)\n* `scale` - the scale of the output SVG based on the width and height of the base SVG. (defaults to 1.0 or 100%)\n* `delay` - time in `ms` before starting animation. (defaults to 1000ms or 1s)\n* `duration` - time in `ms` to complete the path drawing from starting point to ending point. (defaults to 1000ms or 1s)\n* `fill` - the color fill of the closed path. (defaults to none)\n\n## TODO\n\n* Accept paths as objects to handle different delays and duration for each of the single path, as well as custom path properties.\n* Other animated SVG objects.\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fingenuity-ph%2Freact-native-svg-animations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fingenuity-ph%2Freact-native-svg-animations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fingenuity-ph%2Freact-native-svg-animations/lists"}