{"id":28092765,"url":"https://github.com/atull/react-native-shape","last_synced_at":"2025-05-13T13:41:35.865Z","repository":{"id":57339956,"uuid":"199846679","full_name":"atull/react-native-shape","owner":"atull","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-07T13:33:54.000Z","size":485,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T21:40:54.043Z","etag":null,"topics":["circle","demo","hexagon","javascript","mobile","react-native","shape","square","triangle","ui-components"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/atull.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":"2019-07-31T11:54:46.000Z","updated_at":"2022-06-07T07:32:35.000Z","dependencies_parsed_at":"2022-08-24T14:42:24.562Z","dependency_job_id":null,"html_url":"https://github.com/atull/react-native-shape","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/atull%2Freact-native-shape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atull%2Freact-native-shape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atull%2Freact-native-shape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atull%2Freact-native-shape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atull","download_url":"https://codeload.github.com/atull/react-native-shape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253951794,"owners_count":21989556,"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":["circle","demo","hexagon","javascript","mobile","react-native","shape","square","triangle","ui-components"],"created_at":"2025-05-13T13:41:35.187Z","updated_at":"2025-05-13T13:41:35.854Z","avatar_url":"https://github.com/atull.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Shape\n\nCustom shapes for React Native apps\n\nThis library is truly an inspiration from [The shape of CSS](https://css-tricks.com/the-shapes-of-css/) and the example assets for demonstrating this library are been used from an article on [CodeDaily](https://codedaily.io/tutorials/22/The-Shapes-of-React-Native).\n\nCurrently, this library is supporting 9 basic shapes mentioned below.\n```bash\nSquare, Rectangle, Circle, Oval, Triangle, Trapezoid, Pentagon, Hexagon \u0026 Octagon.\n```\n\n## Demo\n\n![demo](./assets/cWR7FKh.gif)\n\n## Installation\n\n```bash\nnpm install react-native-shape\n```\n\n## Properties\n\n| Name          | Type    | Default      |\n|---------------|---------|--------------|\n| **color**     | String  | #1e90ff      |\n| **rotate**    | Int     | 0 (in deg)   |\n| **scale**     | Float   | 1            |\n\n## Example Usage\n\n```js\nimport React from 'react';\nimport { View } from 'react-native';\nimport { Circle, Triangle } from 'react-native-shape';\n\nexport default class App extends React.Component {\n  render() {\n    return (\n      \u003cView\u003e\n        \u003cCircle /\u003e\n        \u003cTriangle color=\"red\" scale={1.2} rotate={45} /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n## Contributing\nContributions are very welcome for bug fixes \u0026 new features\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatull%2Freact-native-shape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatull%2Freact-native-shape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatull%2Freact-native-shape/lists"}