{"id":25606894,"url":"https://github.com/chsdwn/react-native-skia-shadow","last_synced_at":"2025-04-13T11:50:56.715Z","repository":{"id":199474589,"uuid":"701779791","full_name":"chsdwn/react-native-skia-shadow","owner":"chsdwn","description":"Android and iOS compatible shadows with React Native Skia.","archived":false,"fork":false,"pushed_at":"2024-05-15T17:27:12.000Z","size":2699,"stargazers_count":26,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T02:51:21.593Z","etag":null,"topics":["android","expo","ios","package","react-native","shadow"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-skia-shadow","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/chsdwn.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}},"created_at":"2023-10-07T14:33:13.000Z","updated_at":"2025-02-24T02:48:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"70836c7d-e967-4148-a073-1a6949a28aac","html_url":"https://github.com/chsdwn/react-native-skia-shadow","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"9fb8007b62844abc542bd8be03df8cffd6e5c85a"},"previous_names":["chsdwn/react-native-skia-shadow"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsdwn%2Freact-native-skia-shadow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsdwn%2Freact-native-skia-shadow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsdwn%2Freact-native-skia-shadow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsdwn%2Freact-native-skia-shadow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chsdwn","download_url":"https://codeload.github.com/chsdwn/react-native-skia-shadow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248614365,"owners_count":21133704,"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","expo","ios","package","react-native","shadow"],"created_at":"2025-02-21T19:17:38.191Z","updated_at":"2025-04-13T11:50:56.668Z","avatar_url":"https://github.com/chsdwn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca name=\"title\"\u003e\u003c/a\u003e\n  \u003ch3 align=\"center\"\u003eReact Native Skia Shadow\u003c/h3\u003e\n  \n  \u003cp align=\"center\"\u003e\n    Android and iOS compatible shadows with React Native Skia.\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/chsdwn/react-native-skia-shadow/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/chsdwn/react-native-skia-shadow/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#peer-dependencies\"\u003ePeer Dependencies\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgments\"\u003eAcknowledgments\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## About the Project\n\n\u003cp align=\"center\"\u003eTake a look at the iOS and Android screenshots below.\u003c/p\u003e\n\n\u003cdiv style=\"display: flex; justify-content: space-evenly; flex-wrap: wrap;\"\u003e\n\n\u003cdiv\u003e\n\n### iOS (iPhone 15 Pro Max)\n\n\u003cimg src=\"./assets/screenshots/ios.png\" alt=\"React Native Skia Shadow iOS Screenshot\" width=\"300\" /\u003e\n\n\u003c/div\u003e\n\n\u003cdiv\u003e\n\n### Android (Nexus 5)\n\n\u003cimg src=\"./assets/screenshots/android.png\" alt=\"React Native Skia Shadow Android Screenshot\" width=\"300\" /\u003e\n\n\u003c/div\u003e\n\n\u003c/div\u003e\n\n## Getting Started\n\n### Peer Dependencies\n\n#### `@shopify/react-native-skia`\n\n##### React Native CLI\n\n```sh\nnpm install @shopify/react-native-skia\n```\n\n```sh\nyarn add @shopify/react-native-skia\n```\n\n- (MacOS only) Install Cocoa packages\n\n  ```sh\n  npx pod-install\n  ```\n\n##### Expo\n\n```sh\nnpx expo install @shopify/react-native-skia\n```\n\n### Installation\n\n```sh\nnpm install react-native-skia-shadow\n```\n\n```sh\nyarn add react-native-skia-shadow\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Usage\n\nWrap the component you want to add a shadow inside a `SkiaShadow` component.\n\n### Props\n\n| Prop                    | Type     |        Default |\n| ----------------------- | -------- | -------------: |\n| blur                    | `number` |                |\n| dx                      | `number` |                |\n| dy                      | `number` |                |\n| color                   | `Color`  |      `'black'` |\n| borderRadius            | `number` |            `0` |\n| borderTopLeftRadius     | `number` | `borderRadius` |\n| borderTopRightRadius    | `number` | `borderRadius` |\n| borderBottomLeftRadius  | `number` | `borderRadius` |\n| borderBottomRightRadius | `number` | `borderRadius` |\n\n### Example\n\n```tsx\nimport React from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { SkiaShadow } from 'react-native-skia-shadow';\n\nexport const App = () =\u003e {\n  return (\n    \u003cView style={styles.container}\u003e\n      \u003cSkiaShadow blur={5} dx={0} dy={0} color=\"blue\" borderRadius={9999}\u003e\n        \u003cView style={styles.circle} /\u003e\n      \u003c/SkiaShadow\u003e\n    \u003c/View\u003e\n  );\n};\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n  },\n  circle: {\n    width: 150,\n    height: 150,\n    borderRadius: 9999,\n    backgroundColor: 'red',\n  },\n});\n```\n\nFor usage details, please refer to the `src` folder of the example app. https://github.com/chsdwn/react-native-skia-shadow/tree/main/example/src\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Contributing\n\nSee the [contributing guide](https://github.com/chsdwn/react-native-skia-shadow/blob/main/CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## License\n\nDistributed under the MIT License. See [`LICENSE`](https://github.com/chsdwn/react-native-skia-shadow/blob/main/LICENSE) for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Acknowledgments\n\n- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n- [React Native Skia](https://github.com/Shopify/react-native-skia)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchsdwn%2Freact-native-skia-shadow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchsdwn%2Freact-native-skia-shadow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchsdwn%2Freact-native-skia-shadow/lists"}