Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
react-native-instagram-like-image-cropper
Advanced tools
The component like instagram image cropper
npm install react-native-instagram-like-image-cropper --save
or
yarn add react-native-instagram-like-image-cropper
cd ios && pod install && cd ..
import React, {useState} from 'react';
import {Image, StyleSheet, Text, View} from 'react-native';
import InstagramLikeImageCropper from '../src';
const App = () => {
const [croppedImage, setCroppedImage] = useState<string | null>(null);
return (
<View >
<InstagramLikeImageCropper
onCropped={data => setCroppedImage(data.croppedUri)}
image={{
width: 1600,
height: 700,
uri: 'https://dummyimage.com/1600x700/b5b5b5/ffffff.png',
}}
/>
<Text>Cropped image</Text>
{croppedImage && (
<Image source={{uri: croppedImage}} style={styles.image} />
)}
</View>
);
};
export interface InstagramLikeImageCropperProps {
image: { // required
uri: string;
width: number;
height: number;
};
width?: number; // default Dimensions.get('window').width
height?: number; // default Dimensions.get('window').width
grid?: boolean; // default true
gridVerticalNum?: number; // default 2
gridHorizontalNum?: number; // default 2
gridColor?: string; // default '#fff'
onCropped?: (data: CroppedData) => void;
maxScale?: number; // default 2 / range 1 ~ ∞
}
export interface CroppedData {
croppedUri: string;
originalUri: string;
}
FAQs
The component like instagram image cropper
The npm package react-native-instagram-like-image-cropper receives a total of 17 weekly downloads. As such, react-native-instagram-like-image-cropper popularity was classified as not popular.
We found that react-native-instagram-like-image-cropper 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.