{"id":43077846,"url":"https://github.com/lewiscasewell/react-native-patterns","last_synced_at":"2026-01-31T14:12:25.862Z","repository":{"id":206003449,"uuid":"715135749","full_name":"lewiscasewell/react-native-patterns","owner":"lewiscasewell","description":"React native component library that allows you to build reproducible and abstract patterns. Useful for fallbacks for images, e.g. Avatars or list items","archived":false,"fork":false,"pushed_at":"2025-04-07T08:33:55.000Z","size":3386,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T04:41:27.129Z","etag":null,"topics":["react-native","react-native-skia"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-patterns","language":"TypeScript","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/lewiscasewell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-11-06T14:49:02.000Z","updated_at":"2025-04-07T08:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"26cb7ab2-cc29-4204-8ac5-7c84235829c6","html_url":"https://github.com/lewiscasewell/react-native-patterns","commit_stats":null,"previous_names":["lewiscasewell/react-native-patterns"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lewiscasewell/react-native-patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewiscasewell%2Freact-native-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewiscasewell%2Freact-native-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewiscasewell%2Freact-native-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewiscasewell%2Freact-native-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lewiscasewell","download_url":"https://codeload.github.com/lewiscasewell/react-native-patterns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewiscasewell%2Freact-native-patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28944838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T13:02:32.153Z","status":"ssl_error","status_checked_at":"2026-01-31T13:00:07.528Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["react-native","react-native-skia"],"created_at":"2026-01-31T14:12:25.217Z","updated_at":"2026-01-31T14:12:25.854Z","avatar_url":"https://github.com/lewiscasewell.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-patterns\n\n### A react native component library that allows you to build reproducible abstract patterns for your application.\n\nThis library was built using `@shopfiy/react-native-skia`\n\n\u003cimg width=\"1226\" alt=\"Screenshot 2023-11-08 at 14 27 58\" src=\"https://github.com/lewiscasewell/react-native-patterns/assets/64678409/00eb3935-61e9-4b7e-82b7-41cbae402bf1\"\u003e\n\n## Features\n\n- uniqueKey prop allows you to assign a pattern to an id, so that it will be the same every time\n- Can blur, or add an overlay, or custom styles\n- Works just like a View component\n- Written in typescript\n- Compatible with expo\n\n![Screen Recording 2023-11-28 at 11 35 30](https://github.com/lewiscasewell/react-native-patterns/assets/64678409/864c8443-c321-44ab-9015-454a94b72524)\n\n## Installation\n\n```bash\nyarn add @shopify/react-native-skia\nyarn add react-native-patterns\n```\n\n## Usage\n\n### MeshGradient\n\n```tsx\nimport { MeshGradient } from 'react-native-patterns';\n\nconst uniqueKey = 'some-unique-key'; // such as an id\nconst someNiceColors = ['#51C4D3', '#FF2BF1', '#32FF2B', '#311263'];\n\nfunction App() {\n  return (\n    \u003cMeshGradient\n      // required\n      uniqueKey={uniqueKey}\n      width={200}\n      height={200}\n      // optional\n      // default colors are generated via uniqueKey\n      colors={someNiceColors}\n      // default black\n      overlayColor=\"white\"\n      overlayOpacity={0.5}\n      blurRadius={0.5}\n      style={{\n        borderRadius: 20,\n      }}\n    /\u003e\n  );\n}\n```\n\nOr you can also choose to wrap around other components…\n\n```tsx\n\u003cMeshGradient\n  uniqueKey=\"hello-world\"\n  width={200}\n  height={200}\n  overlayOpacity={0.5}\n  style={{\n    borderRadius: 20,\n    justifyContent: 'center',\n    alignItems: 'center',\n  }}\n\u003e\n  \u003cText\u003eHello, world!\u003c/Text\u003e\n\u003c/MeshGradient\u003e\n```\n\nIf using in list, would recommend using with `@shopify/flash-list` for better performance.\n\n### Grid\n\n```tsx\nimport { Grid } from 'react-native-patterns';\n\nconst uniqueKey = 'some-unique-key'; // such as an id\n\nfunction App() {\n  return (\n    \u003cGrid\n      // required\n      uniqueKey={uniqueKey}\n      width={200}\n      height={200}\n      // optional\n      frontColor=\"#51C4D3\"\n      backColor=\"#FF2BF1\"\n      borderSize={0.5}\n      zoomPercentage={40}\n      mask=\"none\"\n      style={{\n        borderRadius: 20,\n      }}\n    /\u003e\n  );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewiscasewell%2Freact-native-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewiscasewell%2Freact-native-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewiscasewell%2Freact-native-patterns/lists"}