{"id":23270381,"url":"https://github.com/kusstar/react-native-mesh-gradient","last_synced_at":"2025-08-21T03:31:50.238Z","repository":{"id":246789907,"uuid":"822942864","full_name":"KusStar/react-native-mesh-gradient","owner":"KusStar","description":"MeshGradient component for React Native.","archived":false,"fork":false,"pushed_at":"2024-07-04T10:08:53.000Z","size":2410,"stargazers_count":12,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-18T06:23:29.843Z","etag":null,"topics":["android","animated-gradient","mesh-gradient","react-native"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@kuss/react-native-mesh-gradient","language":"Kotlin","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/KusStar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-07-02T06:14:49.000Z","updated_at":"2024-12-12T19:25:44.000Z","dependencies_parsed_at":"2024-07-06T10:47:52.715Z","dependency_job_id":null,"html_url":"https://github.com/KusStar/react-native-mesh-gradient","commit_stats":null,"previous_names":["kusstar/react-native-mesh-gradient"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-mesh-gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-mesh-gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-mesh-gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-mesh-gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KusStar","download_url":"https://codeload.github.com/KusStar/react-native-mesh-gradient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230487776,"owners_count":18233861,"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","animated-gradient","mesh-gradient","react-native"],"created_at":"2024-12-19T18:51:26.037Z","updated_at":"2024-12-19T18:51:26.664Z","avatar_url":"https://github.com/KusStar.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-mesh-gradient\n\nMeshGradient for React Native.\n\nhttps://github.com/KusStar/react-native-mesh-gradient/assets/21271495/35b84584-614e-4ffe-9801-1c6547b5eebc\n\nYou can download the example apk in [releases](https://github.com/KusStar/react-native-mesh-gradient/releases).\n\n## Installation\n\nOnly supports Android for now.\n\n```sh\n# npm install @kuss/react-native-mesh-gradient\nyarn add @kuss/react-native-mesh-gradient\n```\n\n## Usage\n\n```js\nimport { MeshGradient } from \"@kuss/react-native-mesh-gradient\";\n\n\u003cMeshGradient\n  colors={['red', 'yellow', 'green', 'blue']}\n  style={{\n    flex: 1,\n    height: '100%',\n    pointerEvents: 'none',\n    position: 'absolute',\n    width: '100%',\n  }}\n/\u003e\n```\n\nMore at [example/App.tsx](./example/src/App.tsx)\n\n## Interface\n\n```ts\nexport type MeshGradientProps = {\n  style?: ViewStyle;\n  /**\n   * defaults to 2, \u003e 0\n   */\n  speed?: number;\n  /*\n   * defaults to ['red', 'yellow', 'green', 'blue'], must be four colors\n   */\n  colors: string[];\n  /**\n   * defaults to 1, 0 - 2\n   */\n  brightness?: number;\n  /**\n   * defaults to 1, 0 - 2\n   */\n  contrast?: number;\n  /**\n   * defaults to 5, \u003e 0\n   */\n  frequency?: number;\n  /**\n   * defaults to 30, \u003e 0\n   */\n  amplitude?: number;\n};\n```\n\n## Thanks\n\n- The [shader](https://github.com/KusStar/react-native-mesh-gradient/blob/d676e2e3f560282835283117f052a78bdb1eb809/android/src/main/java/com/meshgradient/MeshGradientRenderer.kt#L17-L75) code is copied from [https://www.shadertoy.com/view/4t2SDh](https://www.shadertoy.com/view/4t2SDh) by [hahnzhu](https://www.shadertoy.com/user/hahnzhu).\n- [Timeless's Api - Bing Random](https://apifox.com/apidoc/shared-faff130e-7aa3-42da-9f93-574b16c8acda/api-30781027), for getting the random bing wallpaper.\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusstar%2Freact-native-mesh-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkusstar%2Freact-native-mesh-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusstar%2Freact-native-mesh-gradient/lists"}