{"id":18331992,"url":"https://github.com/mrousavy/react-native-screen-corner-radius","last_synced_at":"2025-04-05T05:03:05.088Z","repository":{"id":55865252,"uuid":"320338534","full_name":"mrousavy/react-native-screen-corner-radius","owner":"mrousavy","description":"📱 A React Native library to get the Device's Screen's corner radius","archived":false,"fork":false,"pushed_at":"2025-02-14T14:49:26.000Z","size":884,"stargazers_count":67,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T04:04:32.311Z","etag":null,"topics":["android","ios","library","native","native-module","react","react-native","screen"],"latest_commit_sha":null,"homepage":"","language":"Java","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/mrousavy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2020-12-10T17:09:55.000Z","updated_at":"2025-03-17T15:40:52.000Z","dependencies_parsed_at":"2024-06-21T19:21:01.916Z","dependency_job_id":"9d753a28-5e79-4da3-aa8e-5021308dda15","html_url":"https://github.com/mrousavy/react-native-screen-corner-radius","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"43cebb358d795c3cf55cafe77eda7c646527149f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-screen-corner-radius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-screen-corner-radius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-screen-corner-radius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-screen-corner-radius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrousavy","download_url":"https://codeload.github.com/mrousavy/react-native-screen-corner-radius/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289409,"owners_count":20914464,"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","library","native","native-module","react","react-native","screen"],"created_at":"2024-11-05T19:36:49.004Z","updated_at":"2025-04-05T05:03:05.062Z","avatar_url":"https://github.com/mrousavy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-screen-corner-radius\n\nA React Native library to get the Device's Screen's corner radius.\n\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/example.png\" width=\"40%\"\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\n## Installation\n\n```sh\nnpm install react-native-screen-corner-radius\ncd ios\npod install\n```\n\n## Usage\n\n```js\nimport { ScreenCornerRadius } from \"react-native-screen-corner-radius\"\n\nconsole.log(`Screen Corner Radius: ${ScreenCornerRadius}`)\n```\n\n## Values reported\n\nOn iOS 14.1, the follow values were reported for each device with rounded corners:\n\n| Device | Value (pts) |\n|--|--|\n| iPhone X / Xs / Xs Max / 11 Pro / 11 Pro Max | 39.0 |\n| iPhone Xr / 11 | 41.5 |\n| iPhone 12 mini / 13 mini | 44.0 |\n| iPhone 12 / 12 Pro / 13 Pro / 14 | 47.33 |\n| iPhone 12 Pro Max / 13 Pro Max / 14 Plus | 53.33 |\n| iPhone 15 / 15 Plus / 14 Pro / 14 Pro Max | 55.0 |\n| iPad Air / iPad Pro 11-inch / 12.9-inch | 18.0 |\n\n## Warning\n\nOn iOS, this uses a private API. Since Apple doesn't allow the usage of private APIs, the selector is somewhat obscured, which usually means it will get past app review. However, use at your own risk!\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n## Credits\n\n* [kylebshr/ScreenCorners](https://github.com/kylebshr/ScreenCorners) for the Swift implementation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Freact-native-screen-corner-radius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrousavy%2Freact-native-screen-corner-radius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Freact-native-screen-corner-radius/lists"}