{"id":20878676,"url":"https://github.com/heineiuo/react-native-animated-linear-gradient","last_synced_at":"2025-04-04T20:08:52.035Z","repository":{"id":12009330,"uuid":"70970626","full_name":"heineiuo/react-native-animated-linear-gradient","owner":"heineiuo","description":"Animated linear gradient as background animation or something else.","archived":false,"fork":false,"pushed_at":"2023-01-24T17:41:45.000Z","size":7619,"stargazers_count":232,"open_issues_count":21,"forks_count":50,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T19:07:08.932Z","etag":null,"topics":["android","animation","background-animation","component","ios","react","react-native"],"latest_commit_sha":null,"homepage":"","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/heineiuo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-10-15T06:21:10.000Z","updated_at":"2025-03-25T19:45:31.000Z","dependencies_parsed_at":"2023-02-14T00:01:05.717Z","dependency_job_id":null,"html_url":"https://github.com/heineiuo/react-native-animated-linear-gradient","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heineiuo%2Freact-native-animated-linear-gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heineiuo%2Freact-native-animated-linear-gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heineiuo%2Freact-native-animated-linear-gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heineiuo%2Freact-native-animated-linear-gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heineiuo","download_url":"https://codeload.github.com/heineiuo/react-native-animated-linear-gradient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644041,"owners_count":20810686,"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","animation","background-animation","component","ios","react","react-native"],"created_at":"2024-11-18T07:13:45.905Z","updated_at":"2025-04-04T20:08:52.016Z","avatar_url":"https://github.com/heineiuo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-animated-linear-gradient\nAnimated linear gradient as background animation or other.\n\n\n## Example\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/heineiuo/react-native-animated-linear-gradient/raw/master/.github/capture.gif\" width=375 height=688\u003e\n\u003cbr\u003e\n\n## Install\n\n1. install [react-native-linear-gradient](https://github.com/react-native-community/react-native-linear-gradient),  run `npm install react-native-linear-gradient --save` \n2. run `react-native link react-native-linear-gradient`\n3. run `npm install react-native-animated-linear-gradient --save`\n\n\n## Use\n\n```javascript\nimport React, { Component } from 'react';\nimport { AppRegistry, Text } from 'react-native';\nimport AnimatedLinearGradient, {presetColors} from 'react-native-animated-linear-gradient'\n\nclass HelloWorldApp extends Component {\n  render() {\n    return (\n      \u003cAnimatedLinearGradient customColors={presetColors.instagram} speed={4000}/\u003e\n    );\n  }\n}\n\nAppRegistry.registerComponent('HelloWorldApp', () =\u003e HelloWorldApp);\n```\n\n## Props\n\n1. `customColors`\nA colors `array`. This package has include some preset colors, default is `presetColors.instagram`:\n\n```javascript\nexport presetColors = {\n  instagram: [\n    'rgb(106, 57, 171)',\n    'rgb(151, 52, 160)',\n    'rgb(197, 57, 92)',\n    'rgb(231, 166, 73)',\n    'rgb(181, 70, 92)'\n  ],\n  firefox: [\n    'rgb(236, 190, 55)',\n    'rgb(215, 110, 51)',\n    'rgb(181, 63, 49)',\n    'rgb(192, 71, 45)',\n  ],\n  sunrise: [\n    'rgb(92, 160, 186)',\n    'rgb(106, 166, 186)',\n    'rgb(142, 191, 186)',\n    'rgb(172, 211, 186)',\n    'rgb(239, 235, 186)',\n    'rgb(212, 222, 206)',\n    'rgb(187, 216, 200)',\n    'rgb(152, 197, 190)',\n    'rgb(100, 173, 186)',\n  ]\n};\n```\n\n2. `speed`\nThe speed of the animation. default is 4000.\n\n3. `points` (experimental)\nDescribe the direction of linear gradient with start point and end point [see more](https://github.com/react-native-community/react-native-linear-gradient#start)\n\nDefault: \n```js\nconst DEFAULT_POINTS = {\n  start: {x: 0, y: 0.4}, \n  end: {x: 1, y: 0.6}\n}\n```\n\nExample:\n\nvertical: \n```jsx\n\u003cAnimatedLinearGradient points={{start: {x: 0.5, y: 0}, end: {x: 0.5, y: 1}}}/\u003e\n```\n\nYou can find out it is static values, no animate here :( . This points is going to be animateable soon :) .\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheineiuo%2Freact-native-animated-linear-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheineiuo%2Freact-native-animated-linear-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheineiuo%2Freact-native-animated-linear-gradient/lists"}