{"id":18782871,"url":"https://github.com/rescript-react-native/linear-gradient","last_synced_at":"2025-07-05T12:36:16.707Z","repository":{"id":40715449,"uuid":"234919114","full_name":"rescript-react-native/linear-gradient","owner":"rescript-react-native","description":"ReScript bindings for react-native-linear-gradient","archived":false,"fork":false,"pushed_at":"2023-05-07T19:20:54.000Z","size":311,"stargazers_count":8,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T17:59:44.599Z","etag":null,"topics":["react","react-native","rescript","rescript-react","rescript-react-native"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/rescript-react-native.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-01-19T15:11:28.000Z","updated_at":"2024-02-19T01:17:16.000Z","dependencies_parsed_at":"2023-07-18T04:17:32.433Z","dependency_job_id":null,"html_url":"https://github.com/rescript-react-native/linear-gradient","commit_stats":{"total_commits":22,"total_committers":4,"mean_commits":5.5,"dds":0.2727272727272727,"last_synced_commit":"c5dc118739d8ec8a46d3ad1646e24e068cef3251"},"previous_names":["reason-react-native/linear-gradient"],"tags_count":3,"template":false,"template_full_name":"rescript-react-native/__template__","purl":"pkg:github/rescript-react-native/linear-gradient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Flinear-gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Flinear-gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Flinear-gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Flinear-gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rescript-react-native","download_url":"https://codeload.github.com/rescript-react-native/linear-gradient/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Flinear-gradient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262951174,"owners_count":23389789,"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":["react","react-native","rescript","rescript-react","rescript-react-native"],"created_at":"2024-11-07T20:37:21.327Z","updated_at":"2025-07-05T12:36:16.683Z","avatar_url":"https://github.com/rescript-react-native.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@rescript-react-native/linear-gradient`\n\n[![Build Status](https://github.com/rescript-react-native/linear-gradient/workflows/Build/badge.svg)](https://github.com/rescript-react-native/linear-gradient/actions)\n[![Version](https://img.shields.io/npm/v/@rescript-react-native/linear-gradient.svg)](https://www.npmjs.com/@rescript-react-native/linear-gradient)\n[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f\u0026label=ReScript%20Forum\u0026server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)\n\n[ReScript](https://rescript-lang.org) bindings for\n[`react-native-linear-gradient`](https://github.com/react-native-linear-gradient/react-native-linear-gradient).\n\nExposed as `ReactNativeLinearGradient` module.\n\n`@rescript-react-native/linear-gradient` X.y.\\* means it's compatible with\n`react-native-linear-gradient` X.y.\\*\n\n## Installation\n\nWhen\n[`react-native-linear-gradient`](https://github.com/react-native-linear-gradient/react-native-linear-gradient)\nis properly installed \u0026 configured by following their installation instructions,\nyou can install the bindings:\n\n```console\nnpm install @rescript-react-native/linear-gradient\n# or\nyarn add @rescript-react-native/linear-gradient\n```\n\n`@rescript-react-native/linear-gradient` should be added to `bs-dependencies` in\nyour `bsconfig.json`:\n\n```diff\n{\n  //...\n  \"bs-dependencies\": [\n    \"@rescript/react\",\n    \"rescript-react-native\",\n    // ...\n+    \"@rescript-react-native/linear-gradient\"\n  ],\n  //...\n}\n```\n\n## Usage\n\n```rescript\nopen ReactNative\n\nmodule MyApp = {\n  let styles = Style.(\n    StyleSheet.create({\n      \"container\": viewStyle(~flex=1., ())\n    })\n  );\n\n  [@react.component]\n  let make = () =\u003e {\n    \u003cReactNativeLinearGradient colors=[|\"#faa\", \"#afa\"|] style=styles##container\u003e\n      \u003cText\u003e\n        \"Hello world\"-\u003eReact.string\n      \u003c/Text\u003e\n    \u003c/ReactNativeLinearGradient\u003e\n  }\n};\n```\n\n---\n\n## Changelog\n\nCheck the [changelog](./CHANGELOG.md) for more informations about recent\nreleases.\n\n---\n\n## Contribute\n\nRead the\n[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)\nbefore contributing.\n\n## Code of Conduct\n\nWe want this community to be friendly and respectful to each other. Please read\n[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)\nso that you can understand what actions will and will not be tolerated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescript-react-native%2Flinear-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frescript-react-native%2Flinear-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescript-react-native%2Flinear-gradient/lists"}