
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-screen-corner-radius
Advanced tools
A React Native library to get the Device's Screen's corner radius
A React Native library to get the Device's Screen's corner radius.
npm install react-native-screen-corner-radius
cd ios
pod install
import { ScreenCornerRadius } from "react-native-screen-corner-radius"
console.log(`Screen Corner Radius: ${ScreenCornerRadius}`)
On iOS 14.1, the follow values were reported for each device with rounded corners:
| Device | Value (pts) |
|---|---|
| iPhone X / Xs / Xs Max / 11 Pro / 11 Pro Max | 39.0 |
| iPhone Xr / 11 | 41.5 |
| iPhone 12 mini / 13 mini | 44.0 |
| iPhone 12 / 12 Pro / 13 Pro / 14 | 47.33 |
| iPhone 12 Pro Max / 13 Pro Max / 14 Plus | 53.33 |
| iPhone 15 / 15 Plus / 14 Pro / 14 Pro Max | 55.0 |
| iPad Air / iPad Pro 11-inch / 12.9-inch | 18.0 |
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!
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
A React Native library to get the Device's Screen's corner radius
The npm package react-native-screen-corner-radius receives a total of 5,831 weekly downloads. As such, react-native-screen-corner-radius popularity was classified as popular.
We found that react-native-screen-corner-radius demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.