{"_id":"@b.taranenko/expo-image-crop-tool","_rev":"3-64460582632b5ab65e6a6a1a04732fb5","name":"@b.taranenko/expo-image-crop-tool","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@b.taranenko/expo-image-crop-tool","version":"0.0.1","keywords":["react-native","expo","expo-image-crop-tool","image-crop-tool","cropper","crop-tool","image","ExpoImageCropTool"],"author":{"url":"https://github.com/bluesky-social","name":"Hailey","email":"me@haileyok.com"},"license":"MIT","_id":"@b.taranenko/expo-image-crop-tool@0.0.1","maintainers":[{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"}],"homepage":"https://github.com/bluesky-social/expo-image-crop-tool#readme","bugs":{"url":"https://github.com/bluesky-social/expo-image-crop-tool/issues"},"dist":{"shasum":"590c7d8f02e31fa6ff72ec9aa1220cde41310801","tarball":"https://registry.npmjs.org/@b.taranenko/expo-image-crop-tool/-/expo-image-crop-tool-0.0.1.tgz","fileCount":39,"integrity":"sha512-S6K+wtIqEDyyHhXVJ+X+rjxgSlnAz49ME9ftPgTzWDMiWOf6gfQGy6cypwlH7w5n8DELOKVnYNbFWasw3kTPSg==","signatures":[{"sig":"MEUCIQCA5zx8kNff6TO1t9yfQsPeFrjzGo2jc4JdHrTMeckN3gIgPDaJuOjG7SLxQfT5/yjGjJOlrsfVmMJ0Ias2EyozRzw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40257},"main":"build/index.js","types":"build/index.d.ts","gitHead":"1a5f1d6470adaa1fc1c6cb56438b494486d57522","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"xed example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"},"repository":{"url":"git+https://github.com/bluesky-social/expo-image-crop-tool.git","type":"git"},"_npmVersion":"10.9.2","description":"An image cropper for Expo","directories":{},"_nodeVersion":"22.16.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"expo":"~53.0.0","@types/react":"~19.0.0","react-native":"0.79.2","expo-module-scripts":"^4.1.6"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-image-crop-tool_0.0.1_1758717711822_0.7481505302696716","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@b.taranenko/expo-image-crop-tool","version":"0.0.2","keywords":["react-native","expo","expo-image-crop-tool","image-crop-tool","cropper","crop-tool","image","ExpoImageCropTool"],"author":{"url":"https://github.com/bluesky-social","name":"Hailey","email":"me@haileyok.com"},"license":"MIT","_id":"@b.taranenko/expo-image-crop-tool@0.0.2","maintainers":[{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"}],"homepage":"https://github.com/bluesky-social/expo-image-crop-tool#readme","bugs":{"url":"https://github.com/bluesky-social/expo-image-crop-tool/issues"},"dist":{"shasum":"e9bf427b4fbf26672a02db11431df33d74222fb1","tarball":"https://registry.npmjs.org/@b.taranenko/expo-image-crop-tool/-/expo-image-crop-tool-0.0.2.tgz","fileCount":39,"integrity":"sha512-+3mtmaez7G0Lcn3Dq291ZXlJBfidN5kctdq53sL2paefbd+J1HZQXEBb1E2G+ByTkgEIdVF5jjQJDZHMFZ2T1g==","signatures":[{"sig":"MEYCIQCjke5KYt9qTt3hF1Lsht4ZoE25i1lnvqFcjl6y3HbQHgIhAKwKDGiptQWVjAbAu4T0MP3pKUBKPzlklkQ2K8fTX7lU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40200},"main":"build/index.js","types":"build/index.d.ts","gitHead":"1a5f1d6470adaa1fc1c6cb56438b494486d57522","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"xed example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"},"repository":{"url":"git+https://github.com/bluesky-social/expo-image-crop-tool.git","type":"git"},"_npmVersion":"10.9.2","description":"An image cropper for Expo","directories":{},"_nodeVersion":"22.16.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"expo":"~53.0.0","@types/react":"~19.0.0","react-native":"0.79.2","expo-module-scripts":"^4.1.6"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-image-crop-tool_0.0.2_1758718409444_0.8373588142192061","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@b.taranenko/expo-image-crop-tool","version":"0.0.3","description":"An image cropper for Expo","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"xed example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","expo-image-crop-tool","image-crop-tool","cropper","crop-tool","image","ExpoImageCropTool"],"repository":{"type":"git","url":"git+https://github.com/bluesky-social/expo-image-crop-tool.git"},"bugs":{"url":"https://github.com/bluesky-social/expo-image-crop-tool/issues"},"author":{"name":"Hailey","email":"me@haileyok.com","url":"https://github.com/bluesky-social"},"license":"MIT","homepage":"https://github.com/bluesky-social/expo-image-crop-tool#readme","dependencies":{},"devDependencies":{"@types/react":"~19.0.0","expo-module-scripts":"^4.1.6","expo":"~53.0.0","react-native":"0.79.2"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_id":"@b.taranenko/expo-image-crop-tool@0.0.3","gitHead":"1a5f1d6470adaa1fc1c6cb56438b494486d57522","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-f7bH3Rcv17yMVcXsoYKp7G86k3oAHdwCxGNkGDZBRT1hvs331EIeFSFwUPPRrUCtkvSqBrun8hDDv3dnJ+2yGw==","shasum":"65163fa934c988d308e2724823a0a6b886c6e37f","tarball":"https://registry.npmjs.org/@b.taranenko/expo-image-crop-tool/-/expo-image-crop-tool-0.0.3.tgz","fileCount":39,"unpackedSize":40257,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB0W4uPgAtET834hLAiIK+Dtfn6LAWSMMxro738jIBfbAiAwzWjWyMh6WMPHI2V+wMdTEP5q4XZg05ShjacQpjzNQw=="}]},"_npmUser":{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"},"directories":{},"maintainers":[{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/expo-image-crop-tool_0.0.3_1758720250083_0.9813458957413881"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-24T12:41:51.741Z","modified":"2025-09-24T13:24:10.432Z","0.0.1":"2025-09-24T12:41:52.001Z","0.0.2":"2025-09-24T12:53:29.652Z","0.0.3":"2025-09-24T13:24:10.259Z"},"bugs":{"url":"https://github.com/bluesky-social/expo-image-crop-tool/issues"},"author":{"name":"Hailey","email":"me@haileyok.com","url":"https://github.com/bluesky-social"},"license":"MIT","homepage":"https://github.com/bluesky-social/expo-image-crop-tool#readme","keywords":["react-native","expo","expo-image-crop-tool","image-crop-tool","cropper","crop-tool","image","ExpoImageCropTool"],"repository":{"type":"git","url":"git+https://github.com/bluesky-social/expo-image-crop-tool.git"},"description":"An image cropper for Expo","maintainers":[{"name":"b.taranenko","email":"bogdan13taranenko@gmail.com"}],"readme":"# Expo Image Crop Tool\n\nAn image cropping tool for Expo that allows cropping of the given image. Can be used alongside a library like `expo-image-picker` to provide a more fully-featured cropping experience for users.\n\n# Installation in managed Expo projects\n\nFor [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects &mdash; it is likely to be included in an upcoming Expo SDK release.\n\n# Installation in bare React Native projects\n\nFor bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.\n\n### Add the package to your npm dependencies\n\n```bash\nnpm install expo-image-crop-tool\ncd ios\npod install\n```\n\n# Usage\n\nFor basic examples, see `example/App.tsx`.\n\n## `openCropperAsync(options: OpenCropperOptions) => Promise<OpenCropperResult>`\n\n`openCropperAsync` will return the path to the cropped image, or will throw an error if something goes wrong.\n\n## `OpenCropperOptions`\n\n| Key | Type | iOS | Android | Description |\n|-----|------|-----|---------|-------------|\n| `imageUri` | `string` | ✅ | ✅ | A path to the image that you want to crop. |\n| `shape` | `string` | ✅ | ✅ | The shape that you want the returned image to be (`'rectangle'` \\| `'circle'`). Default is `rectangle`. |\n| `aspectRatio` | `number` | ✅ | ✅ | If you want to force a particular aspect ratio for the output image. |\n| `format` | `string` | ✅ | ✅ | The format of the output image (`'png'` \\| `'jpeg'`). Default is `png`. |\n| `compressImageQuality` | `number` | ✅ | ✅ | If outputting a JPEG image, the compression quality for the output image. |\n| `rotationEnabled` | `boolean` | ✅ | ✅ | Whether or not to allow the user to rotate the image in 90 degree segments. Default is `true`. |\n| `rotationControlEnabled` | `boolean` | ✅ |  | Whether or not to show the rotation control view. Default is `true`. |\n\n\n## `OpenCropperResult`\n\n| Key | Type | Description |\n|-----|------|-------------|\n| `path` | `string` | Path of the output image |\n| `size` | `number` | Size in bytes of the output image |\n| `width` | `number` | Width of the output image |\n| `height` | `number` | Height of the output image |\n| `mimeType` | `string` | MIME type of the output image |\n\n","readmeFilename":"README.md"}