
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-native-adapt-screen
Advanced tools
The index.js file provides utility functions for implementing responsive design in React Native applications. Leveraging the Dimensions and PixelRatio modules from react-native, it offers functions such as SizeShouldBe, WidthShouldBe, and HeightShouldBe t
Achieve pixel-perfect UI dimensions and font sizes in your React Native app effortlessly with React Native Adapt Screen. Say goodbye to manual tweaking and ensure your app's UI matches your Figma or Adobe XD designs seamlessly.
WidthShouldBe()
and HeightShouldBe()
functions to set exact dimensions based on your design files.SizeShouldBe()
for optimal readability and aesthetics.Install React Native Adapt Screen via npm:
npm install react-native-adapt-screen
Import the necessary functions from React Native Adapt Screen:
import {
WidthShouldBe,
HeightShouldBe,
SizeShouldBe,
FullWidth,
FullHeight,
} from "react-native-adapt-screen";
Use these functions with exact size integers from your Figma or Adobe XD designs:
<View style={{ width: FullWidth(), height: FullHeight() }}>
<View style={{ width: WidthShouldBe(100), height: HeightShouldBe(200) }}>
<Text style={{ fontSize: SizeShouldBe(18) }}>
Hello, React Native Adapt Screen!
</Text>
</View>
</View>
👤 Harsh Sharma
Give a ⭐️ if this project helped you!
FAQs
The index.js file provides utility functions for implementing responsive design in React Native applications. Leveraging the Dimensions and PixelRatio modules from react-native, it offers functions such as SizeShouldBe, WidthShouldBe, and HeightShouldBe t
The npm package react-native-adapt-screen receives a total of 32 weekly downloads. As such, react-native-adapt-screen popularity was classified as not popular.
We found that react-native-adapt-screen demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.