Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ankipro/react-native-window-resize
Advanced tools
React Native library to resize app window on iOS. This library is mainly needed to quickly change the screen resolution by simulating different devices without having to open several simulators to test different resolution-dependent functions on the same device.
yarn add @ankipro/react-native-window-resize
install pods
npx pod-install
import WindowResizer from '@ankipro/react-native-window-resize';
// ...
WindowResizer.resizeToDefault();
WindowResizer.resizeTo(deviceModel);
WindowResizer.getAvailableDeviceModels((deviceModels) => ...)
For more information see example.
Name | Type | Description |
---|---|---|
.getAvailableDeviceModels() | onComplete: (deviceModels: Array<DeviceModel>) => void | Get a list of device dimensions that are smaller than the current device |
.resizeTo() | (deviceModelName: string) => void | Resize to 'deviceModelName' device |
.resizeToDefault() | () => void | Reset to initial window size |
type DeviceModel = {
name: string;
width: number;
height: number;
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
React Native window resizer for iOS
We found that @ankipro/react-native-window-resize 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.