New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-screen-corner-radius

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-screen-corner-radius

A React Native library to get the Device's Screen's corner radius

latest
Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
7K
52.36%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-screen-corner-radius

A React Native library to get the Device's Screen's corner radius.



Installation

npm install react-native-screen-corner-radius
cd ios
pod install

Usage

import { ScreenCornerRadius } from "react-native-screen-corner-radius"

console.log(`Screen Corner Radius: ${ScreenCornerRadius}`)

Values reported

On iOS 14.1, the follow values were reported for each device with rounded corners:

DeviceValue (pts)
iPhone X / Xs / Xs Max / 11 Pro / 11 Pro Max39.0
iPhone Xr / 1141.5
iPhone 12 mini / 13 mini44.0
iPhone 12 / 12 Pro / 13 Pro / 1447.33
iPhone 12 Pro Max / 13 Pro Max / 14 Plus53.33
iPhone 15 / 15 Plus / 14 Pro / 14 Pro Max55.0
iPad Air / iPad Pro 11-inch / 12.9-inch18.0

Warning

On 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!

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Credits

  • kylebshr/ScreenCorners for the Swift implementation

Keywords

react-native

FAQs

Package last updated on 05 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts