{"id":21371845,"url":"https://github.com/only-icesoul/react-native-gradient","last_synced_at":"2026-04-18T14:31:42.892Z","repository":{"id":57337353,"uuid":"382699089","full_name":"Only-IceSoul/react-native-gradient","owner":"Only-IceSoul","description":"Gradient android ios web ","archived":false,"fork":false,"pushed_at":"2021-11-28T15:07:14.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-23T04:03:36.522Z","etag":null,"topics":["android","conic","gradient","ios","linear","radial","react","react-native","sweep","web"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Only-IceSoul.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":"2021-07-03T19:55:07.000Z","updated_at":"2021-11-28T15:07:16.000Z","dependencies_parsed_at":"2022-09-12T11:10:16.161Z","dependency_job_id":null,"html_url":"https://github.com/Only-IceSoul/react-native-gradient","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Only-IceSoul%2Freact-native-gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Only-IceSoul%2Freact-native-gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Only-IceSoul%2Freact-native-gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Only-IceSoul%2Freact-native-gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Only-IceSoul","download_url":"https://codeload.github.com/Only-IceSoul/react-native-gradient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846982,"owners_count":20357297,"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":["android","conic","gradient","ios","linear","radial","react","react-native","sweep","web"],"created_at":"2024-11-22T08:15:35.683Z","updated_at":"2026-04-18T14:31:42.826Z","avatar_url":"https://github.com/Only-IceSoul.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gradientview\n\nandroid: api 21+   \nios : 10.0+   \nweb: svg \n  \n\u003cimg src=\"./src/demo.jpg\" width=\"600\"\u003e  \n  \n\n\n## Getting started\n\n`$ npm install react-native-gradientview --save`  \n`$ react-native link react-native-gradientview`  \n  \nor\n\n`$ yarn add react-native-gradientview `\n    \n\n## IOS\n\n**Add Swift**\n\n(expo sdk \u003e=42 you don't need to do this)\n\n/ios/name_project\n\nadd a .swift file \n\n\n\n# Usage\n```javascript\nimport { LinearGradient, RadialGradient,ConicGradient ,Color } from 'react-native-gradientview';\n\n// TODO: What to do with the module?\n   \u003cLinearGradient {...props}\n     colors={[Color('red'),Color('#ccc'),...]}\n    /\u003e\n\n    \u003cRadialGradient {...props} /\u003e\n    \u003cConicGradient {...props} /\u003e\n\n\n```\n\n\n## LinearGradient \n\n| Name | type | default |\n| --- | --- | --- |\n| startPoint |  Object x y | 0.5 - 0 |\n| endPoint |  Object x y | 0.5 - 1 | \n| colors |  Array [Color]  | white,black |\n| positions |  Array [number] | undefined  |\n| tileMode | (android,web)  String  | 'clamp' |  \n## RadialGradient \n\n| Name | type | default |\n| --- | --- | --- |\n| colors |  Array [Color]  | white,black |\n| positions |  Array [number] |  undefined |\n| cx |  number |  0.5 |\n| cy |  number |  0.5 |\n| rx |  number | 0.5 |\n| rx |  number | 0.5 |\n| tileMode | (android,web) String  | 'clamp' |\n\n## ConicGradient \n\n| Name | type | OS | default |\n| --- | --- | --- | --- |\n| startPoint |  Object | ios | 0.5 - 0 |\n| endPoint |  Object | ios | 0.5 - 1 |\n| colors |  Array [Color]  | android,web,ios | white,black |\n| positions |  Array [number] | android,web,ios | undefined |\n| centerX |  number | android,web | 0.5 |\n| centerY |  number | android,web | 0.5 |\n| conicRotation |  number | android,web | 0 |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonly-icesoul%2Freact-native-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonly-icesoul%2Freact-native-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonly-icesoul%2Freact-native-gradient/lists"}