{"repo":"callstack/react-native-image-editor","free":true,"listed":false,"github":"https://github.com/callstack/react-native-image-editor","clone":"git clone https://github.com/callstack/react-native-image-editor.git","description":"A library providing an API for cropping images from the web and the local file system.","language":"Kotlin","stars":447,"topics":["android","ios","react-native","web"],"license":"MIT","category":"mobile-apps","readme_excerpt":"@react-native-community/image-editor [![Build Status][build-badge]][build] [![Version][version-badge]][package] [![MIT License][license-badge]][license] [![PRs Welcome][prs-welcome-badge]][prs-welcome] [![Lean Core Badge][lean-core-badge]][lean-core-issue] Image Editor Native module for React Native. Originally extracted from React Native issue#23313 and maintained by the community. Getting started Install Install Pods Usage Start by importing the library: Crop image Crop the image specified by the URI param. If URI points to a remote image, it will be downloaded automatically. If the image cannot be loaded/downloaded, the promise will be rejected. If the cropping process is successful, the resultant cropped image will be stored in the cache path, and the CropResult returned in the promise will point to the image in the cache path. ⚠️ Remember to delete the cropped image from the cache path when you are done with it. cropData: ImageCropData Name Type Description ------------------------------- ----------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ offset { x: number, y: number } The top-left corner of the cropped image, specified in the original image's coordinate space size { width: number, height: number } Size (dimensions) of the cropped image displaySize (optional) { width: num","default_branch":null,"files":null,"tree":[],"storefront":"/r/callstack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/callstack/react-native-image-editor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}