{"id":20691075,"url":"https://github.com/dotmind/rn-shadow-generator","last_synced_at":"2025-07-01T15:06:55.462Z","repository":{"id":57109447,"uuid":"357545962","full_name":"dotmind/rn-shadow-generator","owner":"dotmind","description":"React Native Shadow Generator is a tool to quickly generate your shadow's Components. Tool builded by .mind team.","archived":false,"fork":false,"pushed_at":"2021-05-25T08:36:07.000Z","size":2353,"stargazers_count":45,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T18:55:44.363Z","etag":null,"topics":["android","ios","react","react-native","rn-shadow-generator","shadow"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dotmind.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}},"created_at":"2021-04-13T12:32:08.000Z","updated_at":"2022-12-12T09:49:40.000Z","dependencies_parsed_at":"2022-08-20T18:20:14.217Z","dependency_job_id":null,"html_url":"https://github.com/dotmind/rn-shadow-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotmind%2Frn-shadow-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotmind%2Frn-shadow-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotmind%2Frn-shadow-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotmind%2Frn-shadow-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotmind","download_url":"https://codeload.github.com/dotmind/rn-shadow-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250069582,"owners_count":21369746,"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","ios","react","react-native","rn-shadow-generator","shadow"],"created_at":"2024-11-16T23:15:14.430Z","updated_at":"2025-04-22T16:59:04.669Z","avatar_url":"https://github.com/dotmind.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"header\" src=\"https://raw.githubusercontent.com/dotmind/rn-shadow-generator/master/examples/header.jpg\" /\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003e\n  @dotmind/rn-shadow-generator\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  React Native Shadow Generator to quickly generate shadow of your components. Builded by \u003ca href=\"https://dotmind.io/\" target=\"_blank\"\u003e.mind.io\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@dotmind/rn-shadow-generator\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@dotmind/rn-shadow-generator\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@dotmind/rn-shadow-generator\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dw/@dotmind/rn-shadow-generator\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/dotmind/rn-shadow-generator\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/dotmind/rn-shadow-generator/branch/master/graph/badge.svg?token=FBX6GCYOQF\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dotmind/rn-shadow-generator\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/dotmind/rn-shadow-generator\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dotmind/rn-shadow-generator\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/types/typescript\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Menu\n\n- [Menu](#menu)\n- [🚀 Roadmap](#-roadmap)\n- [🔍 Preview](#-preview)\n- [💻 Installation](#-installation)\n- [👷‍♂️ How it's work](#️-how-its-work)\n  - [ShadowView usage](#shadowview-usage)\n  - [generateShadow usage](#generateshadow-usage)\n- [🧪 Example app](#-example-app)\n- [⚡️ Contributing](#️-contributing)\n- [🔐 License](#-license)\n\n## 🚀 Roadmap\n\n* [ ] Android full compatibility (shadowOffset support)\n\n\n## 🔍 Preview\n\n![preview](https://raw.githubusercontent.com/dotmind/rn-shadow-generator/master/examples/preview.png)\n\n## 💻 Installation\n\n```bash\nyarn add @dotmind/rn-shadow-generator\n```\n\nor\n\n```bash\nnpm i @dotmind/rn-shadow-generator --save\n```\n\n## 👷‍♂️ How it's work\n\n### ShadowView usage\n\n```javascript\nimport { ShadowView } from '@dotmind/rn-shadow-generator';\n\nconst BasicComponent = () =\u003e {\n  return (\n    \u003cShadowView\u003e\n      \u003cText\u003eMy Shadow View\u003c/Text\u003e\n    \u003c/ShadowView\u003e\n  );\n}\n\nconst MyCustomComponent = () =\u003e {\n  return (\n    \u003cShadowView level={4} shadowColor={'#000'} direction={'bottom'}\u003e\n      \u003cText\u003eMy Shadow View\u003c/Text\u003e\n    \u003c/ShadowView\u003e\n  );\n}\n\n```\n\n| props | description | required | default value |\n|-|-|-|-|\n| level | Increase shadow dimensions | false | 4 |\n| shadowColor | Change shadowColor style attribute | false | #000 |\n| direction | Change shadow direction | false | bottom |\n\n### generateShadow usage\n\nReturns a full shadow object depending on OS (iOS or Android).\n\n```javascript\nimport { generateShadow } from '@dotmind/rn-shadow-generator';\n\nconst BasicComponent = () =\u003e {\n  return (\n    \u003cView style={{ ...generateShadow() }}\u003e\n      \u003cText\u003eMy Shadow View\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n}\n\nconst MyCustomComponent = () =\u003e {\n  return (\n    \u003cView style={{ ...generateShadow({ level: 4, shadowColor: '#000', direction: 'bottom' }) }}\u003e\n      \u003cText\u003eMy Shadow View\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n}\n\n```\n\n| attributes | description | required | default value |\n|-|-|-|-|\n| level | Increase shadow dimensions | false | 4 |\n| shadowColor | Change shadowColor style attribute | false | #000 |\n| direction | Change shadow direction | false | bottom |\n\n**Object returned**\n\n```javascript\n{\n  ...Platform.select({\n    ios: {\n      shadowColor,\n      shadowOffset,\n      shadowOpacity,\n      shadowRadius,\n    },\n    android: {\n      shadowColor,\n      elevation: level,\n    },\n  }),\n}\n```\n\n## 🧪 Example app\n\nTo see full app integration example please [refer to here](./examples/ShadowExampleApp/App.tsx).\n\n\u003e ⚠️ To run the app please run here `yarn build` that the @dotmind/rn-shadow-generator npm package be able to link itselfs.\n## ⚡️ Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## 🔐 License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotmind%2Frn-shadow-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotmind%2Frn-shadow-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotmind%2Frn-shadow-generator/lists"}