![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
expo-crop-image
Advanced tools
Allows user to crop image with given aspect ratio for react native using expo on Android and IOS - (Workaround for IOS always square images).
Allows user to crop image with given aspect ratio for react native using expo on Android and IOS.
npm install expo-crop-image
isRequired if there is a * in the name field
name | Proptypes | Description |
---|---|---|
imageUri * | string | Image address that will be used for cropping |
fixedAspectRatio * | number | Expect => aspect ratio. |
minimumCropDimensions | (size) | Expect => {width: number, height: number} [Default 100 X 100]. |
onEditingCancel * | func | void |
onEditingComplete * | func | Returns image object (image object fields => uri, width, height). |
editorOptions | object | Customize appearance of editor |
processingComponent | ReactNode | Customize appearance of loading between process |
import { ImageEditor } from "expo-crop-image";
<ImageEditor
imageUri={uri}
fixedAspectRatio={2 / 3}
minimumCropDimensions={{
width: 50,
height: 50,
}}
onEditingCancel={() => {
console.log("onEditingCancel");
}}
onEditingComplete={(image) => {
console.log(image);
}}
/>;
import { ImageEditor } from "expo-crop-image";
<ImageEditor
...
editorOptions={{
...
}}
/>;
type EditorOptions = {
backgroundColor?: string
controlBar?: {
position?: 'top' | 'bottom'
backgroundColor?: string
height?: number
cancelButton?: IconProps
cropButton?: IconProps
backButton?: IconProps
saveButton?: IconProps
}
coverMarker?: {
show?: boolean
color?: string
}
gridOverlayColor?: string
overlayCropColor?: string
}
type IconProps = {
color: string
text: string
iconName: FeatherIconNames | MaterialIconNames
}
This project was developed using the following technologies:
To use this package you have to install the following dependencies
Clone the project and access the folder.
git clone https://github.com/NitoBa/expo-crop-image.git
cd expo-crop-image && npm install
cd example-app && npm install && cd ..
Compile the package locally
# build the package locally
npm run build:dev
# watch to changes while running with app
npm run build:watch
Made with 💜 by Bruno Alves 👋
FAQs
Allows user to crop image with given aspect ratio for react native using expo on Android and IOS - (Workaround for IOS always square images).
The npm package expo-crop-image receives a total of 0 weekly downloads. As such, expo-crop-image popularity was classified as not popular.
We found that expo-crop-image 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.