{"_id":"@atlkuk/react-native-image-crop-picker","_rev":"4-2c8816ea9c3ebc4dcac635f8271299df","name":"@atlkuk/react-native-image-crop-picker","dist-tags":{"latest":"0.24.5"},"versions":{"0.24.2":{"name":"@atlkuk/react-native-image-crop-picker","version":"0.24.2","description":"Select single or multiple images, with cropping option","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"rm -rf android/build"},"repository":{"type":"git","url":"git+https://github.com/ivpusic/react-native-image-crop-picker.git"},"keywords":["react","native","react-native","image","picker","crop","cropping","multiple","camera"],"author":{"name":"Ivan Pusic"},"license":"MIT","bugs":{"url":"https://github.com/ivpusic/react-native-image-crop-picker/issues"},"homepage":"https://github.com/ivpusic/react-native-image-crop-picker#readme","peerDependencies":{"react-native":">=0.40.0"},"directories":{"example":"example"},"gitHead":"b5ceec252a3fe547b801dca0a6eba56505f08a86","_id":"@atlkuk/react-native-image-crop-picker@0.24.2","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"},"dist":{"integrity":"sha512-vagseIn4cNoImVEcuyepjDwvEn1A1J+TbF4s2yEx4qNBZzcOS4xA0eZRzU7Ix1m5aOKkuGoesrZ+nDA6R6nrDw==","shasum":"63ec128042d0dcc7067ef9f1c2951c4ededa11fd","tarball":"https://registry.npmjs.org/@atlkuk/react-native-image-crop-picker/-/react-native-image-crop-picker-0.24.2.tgz","fileCount":180,"unpackedSize":4021425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLeV/CRA9TVsSAnZWagAASCAP/3BmEdbyBhIjgEIpC6eL\nbIeykvMLoSx8qHj/jy/AZHIr0RiCHYmOCUNAIbRXjra1MGhc8386ZeBu/s2P\nGLDMnjW4UuTuG1w+GvcZ6kYNIaGJKdvaOJVilcpsGT9bDBz5F/MvbcldIpd4\np6pApQsrhc146zBB255OtNr8ivEwZDIgFDZvltu0SqtEozFlEw29l+LTaJEO\nvwSwuGo2wzTbrGZ226/v7juvZ354TRPERTrVwuvxBOU4CwPpIrGQNRfiH12n\n11QuZLdJSrEabR+CtKldVLj/ccuqnXYuSRraWN8vmVm0og6k57jSh76d25oO\nLeDBAqgxupIfKh4cb++MB/Y3gNJkwwPpj7I9ksmr0yZ5u37sMoC31bMWx+RI\nx406zFqycrkEGYTRQ3bitiMntLpwLrQ1Rd7gPFJ9vRrb00R/CG8FC18y6I9W\nvLa2TAzNaOH7xR1K0KbCm7BzDJLkml7JOvS1ovuhNFuha3OnqLX8zUepAwG+\nhl3USom03p5CwHGeVWBqTaXimRxFvWfLd5qkKvZ/yG+T8izKY6DHGiEH8CB8\nmEoK/5rOAMjGuR8zh1eryeda1f5NQ2p/ukD8berxmJe6aOpgGzuOAgVRz7sP\nM+g7zcBosqgnufDy+Ur+ZZf11s0rIZOeR+EfHCRPEfADoZs1Ii1KPjBbj82r\n7sEz\r\n=RU7s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsohTzUxnawo0dVAZBhBenJO2iyU3A9nqQjsH8FOt7LAiEAhv+9Sy6Ssn3PZtba0Wygv2zcvuCuJ+iAnlR6FGubK1I="}]},"maintainers":[{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-image-crop-picker_0.24.2_1563288957360_0.6850229316023491"},"_hasShrinkwrap":false},"0.24.3":{"name":"@atlkuk/react-native-image-crop-picker","version":"0.24.3","description":"Select single or multiple images, with cropping option","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"rm -rf android/build"},"repository":{"type":"git","url":"git+https://github.com/ivpusic/react-native-image-crop-picker.git"},"keywords":["react","native","react-native","image","picker","crop","cropping","multiple","camera"],"author":{"name":"Ivan Pusic"},"license":"MIT","bugs":{"url":"https://github.com/ivpusic/react-native-image-crop-picker/issues"},"homepage":"https://github.com/ivpusic/react-native-image-crop-picker#readme","directories":{"example":"example"},"gitHead":"91365034052d9a358fe6c81b24d36db0abbc3ed2","_id":"@atlkuk/react-native-image-crop-picker@0.24.3","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-IX/ntvPZR0murY95O5muS46nugB0tFL57v4k97JrCql0QKvfFcMlvJc8zqd6IqcgpZf5x73lM5Siu2pnzW5xxg==","shasum":"995fcb5c7524b0db096ee3466ece5e076a600990","tarball":"https://registry.npmjs.org/@atlkuk/react-native-image-crop-picker/-/react-native-image-crop-picker-0.24.3.tgz","fileCount":181,"unpackedSize":4027787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdW/fFCRA9TVsSAnZWagAAYVgP/Rf6ZPoNkqZtHxeRXAu6\n2Tr2JtCTEnEsCX62pJW8jCQKTqs5gvcbR0XPUPBZvduJMcWaNSBR9iHgGY/P\nFPShhx7Pl34meN3KDC5sbIsjAoXsR5QGRleW7SZvKlZoneEiJnzBrxFA1eYi\n7pj0+dXzdZ0uVHDrVPBQhauwXyf2JYsWWXww2Q0YHCZyp0l6mZDymoXuKKb7\nXmp3u4D5iLpI2zPSsABFcO1n+I9jLEfCsPflNOWuruhhUJdFTPTxZgwJCqZx\nwsfURwdoL1aq3FAETKYfGq4pCtpZYwb42sgT8YAyHQxyMkHEoBfBObEfYng6\nJCYYCuREqn33/4yocl17iXnE3sEb2zBaj7OJ8tzoGDMgwXuF0nSK0Q1mwUCX\nykw5q+bwNcJbg/Drm1yqz+bgBVMkkQB3z6+4ppue+RZDiM4YXNl2kdD6jcrT\ntuC7VBHLAWE5QDXE2wtEjuZIsBMkKE/KAKjXo6WrUoancU7/gejE2jcrI9qA\nbMabOWJxlVxE+9kozEpW+ptcpBnK/NhywNRmKg2B0VZNZsfrjIdfIA/KRPF2\nhWKTQLbo0vHuxtgI43YID+2uFYYZtluKyM5UWbq6RIlFTOlWg3MRZ1aRUi6H\nXps6mnHvv54mQPqBlQQjtImEp7eByWliVNabmcnDkCDV2I8bTr+Il+bTmBGJ\n1+0p\r\n=D7cT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAb/cIDc8s6uelttJgCNZq2Djh4dFC9funOex8Vy1kLKAiBsWx3iSqOmtIULWileQfSoEx46nsd7msuvXAN34YWnqw=="}]},"maintainers":[{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"}],"_npmUser":{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-image-crop-picker_0.24.3_1566308292850_0.5400041172319363"},"_hasShrinkwrap":false},"0.24.4":{"name":"@atlkuk/react-native-image-crop-picker","version":"0.24.4","description":"Select single or multiple images, with cropping option","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"rm -rf android/build"},"repository":{"type":"git","url":"git+https://github.com/ivpusic/react-native-image-crop-picker.git"},"keywords":["react","native","react-native","image","picker","crop","cropping","multiple","camera"],"author":{"name":"Ivan Pusic"},"license":"MIT","bugs":{"url":"https://github.com/ivpusic/react-native-image-crop-picker/issues"},"homepage":"https://github.com/ivpusic/react-native-image-crop-picker#readme","directories":{"example":"example"},"gitHead":"cfd124472818bea0719789c9a05472387e210f12","_id":"@atlkuk/react-native-image-crop-picker@0.24.4","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-UAeeVDUXcDbwRaJ46X7+igWHmAdSyeer0QaiAtz/cxK6PXooeBM4CCcjI9sNwLlQZNlxpZACdpwvTrKkqDZZqQ==","shasum":"71360692d0635a9f4a0533e0b14c07d21262ba57","tarball":"https://registry.npmjs.org/@atlkuk/react-native-image-crop-picker/-/react-native-image-crop-picker-0.24.4.tgz","fileCount":180,"unpackedSize":4021363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdW/myCRA9TVsSAnZWagAABMAP/RcmNWFHVMXaDWt+UwDr\ncqm3ZrYyhbl66m305yH3ri2vF1HnESihs84TkOkfgZvji/5C2mhdlC+YEVEZ\nVYghzcXq2z8fCKSEiRO83kfiIsGaUggZoOT1lNG6shyqn76zblzXt1gTAhi4\nIiowZle+Q3vm4Ix40jo4hMXKZRC2qX1PNPR5m3WZMFyThDEtm2mf8dXxyAw5\nWyxPRceTffZ+9GOjLmuR7USnY6o4etHoAr/7bTgGatqYkkQROv0F36oQ35vo\nr6ojh88tQuP/Ov7hDgSJoXAxK+wpkz/68d9PfLKf15kzpGcZwW6A/mif/xIa\ntSTcABSFv/HwWcHznE2wybHz3XGRZlYBmcS/57IuKiwtIBjfhPHDgZs4Nfef\nu92hZW3uwNLlanyTwTnTgMsMK7AMbEi3qd3ta8/jW0LlP8oNXLzI1l+bosg/\nig4sG/x8Y54GqAwnlUW87lImTpNBprHzGEKte4O2xEvDjppku+KIyWf2mYHY\n3z1/+Vq05j2Qx4vE7+kcYns81hKyKZ4NkT1iJHRoK9PrBX9eVdXzealWhvQI\nkfKW220UioD0PrJkk/kQH1enWEli9qizXLl9VK5PYr+UQPI+HmwM/11B/5E7\nkw0HVPldAfD7FCyB7olAa5QyW8O5i1sgDVNX2FaFIZDi8OPprwIWlHHloF8W\nEHnT\r\n=uz8C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdb8fpRCi73TxbVrt6KWqQ0qQsFofy20TSeyyO6U/8nwIhAPlXevw9rUjn3SoDPjvHJHPRKclZFMTBgS4Jy05H/kQu"}]},"maintainers":[{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"}],"_npmUser":{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-image-crop-picker_0.24.4_1566308785779_0.9457854476659584"},"_hasShrinkwrap":false},"0.24.5":{"name":"@atlkuk/react-native-image-crop-picker","version":"0.24.5","description":"Select single or multiple images, with cropping option","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"rm -rf android/build"},"repository":{"type":"git","url":"git+https://github.com/ivpusic/react-native-image-crop-picker.git"},"keywords":["react","native","react-native","image","picker","crop","cropping","multiple","camera"],"author":{"name":"Ivan Pusic"},"license":"MIT","bugs":{"url":"https://github.com/ivpusic/react-native-image-crop-picker/issues"},"homepage":"https://github.com/ivpusic/react-native-image-crop-picker#readme","directories":{"example":"example"},"gitHead":"bf83cfaf1f4ec9b10094eba8bb8c708b012306d9","_id":"@atlkuk/react-native-image-crop-picker@0.24.5","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-JFiMvyNHFhsXWXJSgkinRQReKo1htsBWyjcGJsih3pmjY537z9A2rrtCfKz+oufEXUsws1No98fAbgdV4o1ZDQ==","shasum":"4555859549a7a4830c2ea029b2d113a2969a8d02","tarball":"https://registry.npmjs.org/@atlkuk/react-native-image-crop-picker/-/react-native-image-crop-picker-0.24.5.tgz","fileCount":180,"unpackedSize":4021395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXRG/CRA9TVsSAnZWagAA43QP/A8+ylEGfFWQ0a8s3d60\njZW1ablJ+9slKbZMk/er/VitkMs2oKJsRMdD0FK1A+3Z+pNf33YhcbjZmsGw\nIOVuCN8Lk0ZsMrS1sx31oO7sd0EBwVzLD1UjULSuwlo7883cL1m7IUAbzYFS\npFWI8ZTR5w+HJE0UbOLd3MFKDMH7hQJk1loj+EWr65+KiVNdhTWDk8z/CG9X\npzzFKjbXUDZBur31xpl6sCi0CCjtQ6s9Zml+JSdxNlhXzPzqRF9Bv2GAwASE\nOY4Ghm1aJx8spgb7wpZJp7hJsc40uDrYkXh8F4VURLEAdd9CDdTOoLXyMV9/\n9yUl7e1AcAIHoAoAsCt+Rx547FDOD+7eKRMzMtg4Hlggh0z2GA4Vgwnk2/Af\n2dM8rSUmy8v/fao1DtYTOmh8NVKq7rOFJKyWGAjzM/PZrHZetkg6rJeP+gTl\n3dxwiwBAZFMTzX9bn/o1pQA9nrRk2iBDzKq/oR1iSKoh0ln/qUtrlMQ0X7C+\nas0CsS/FVGeOu05RXkQO5PtiMC4iSvfqP4j1Bw8Ji9EsyJOA9d0CinNiLFGI\nNDAQW3JbLjVOCx6Ttq7KvK+QhoOlCI3euANdS4pfKo6tXPyVVNhJPYwogmK5\njTyPaER0Nt/rOxCiBWhuFFe4yQF6Dzu6BHzVKbm26YBbxodyB0VqpO7SQyNU\nxpNS\r\n=75T8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbLENP1qCrUJBIxA+X8LTORi5CIvf892vPfRByE3VktAiACokMHEK6rmtILEdMrpgVZ8xo6FyoMwuVoW+V5Itg9Cg=="}]},"maintainers":[{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"}],"_npmUser":{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-image-crop-picker_0.24.5_1566380478077_0.5887018230971581"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-16T14:55:57.153Z","0.24.2":"2019-07-16T14:55:57.520Z","modified":"2022-04-04T16:12:56.967Z","0.24.3":"2019-08-20T13:38:13.049Z","0.24.4":"2019-08-20T13:46:26.046Z","0.24.5":"2019-08-21T09:41:18.392Z"},"maintainers":[{"name":"atlkuk","email":"marco.cucchiarelli88@gmail.com"}],"description":"Select single or multiple images, with cropping option","homepage":"https://github.com/ivpusic/react-native-image-crop-picker#readme","keywords":["react","native","react-native","image","picker","crop","cropping","multiple","camera"],"repository":{"type":"git","url":"git+https://github.com/ivpusic/react-native-image-crop-picker.git"},"author":{"name":"Ivan Pusic"},"bugs":{"url":"https://github.com/ivpusic/react-native-image-crop-picker/issues"},"license":"MIT","readme":"# react-native-image-crop-picker\n\n[![Backers on Open Collective](https://opencollective.com/react-native-image-crop-picker/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/react-native-image-crop-picker/sponsors/badge.svg)](#sponsors)\n\n<img src=\"svg.svg\" width=\"50%\" height=\"50%\" />\n\niOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping\n\n## Result\n\n<p align=\"left\">\n  <img width=200 title=\"iOS Single Pick\" src=\"https://github.com/ivpusic/react-native-image-crop-picker/blob/master/images/ios_single_pick.png\">\n<img width=200 title=\"iOS Crop\" src=\"https://github.com/ivpusic/react-native-image-crop-picker/blob/master/images/ios_crop.png\">\n<img width=200 title=\"iOS Multiple Pick\" src=\"https://github.com/ivpusic/react-native-image-crop-picker/blob/master/images/ios_multiple_pick.png\">\n</p>\n\n## Usage\n\nImport library\n\n```javascript\nimport ImagePicker from 'react-native-image-crop-picker';\n```\n\n### Select from gallery\n\nCall single image picker with cropping\n```javascript\nImagePicker.openPicker({\n  width: 300,\n  height: 400,\n  cropping: true\n}).then(image => {\n  console.log(image);\n});\n```\n\nCall multiple image picker\n\n```javascript\nImagePicker.openPicker({\n  multiple: true\n}).then(images => {\n  console.log(images);\n});\n```\n\nSelect video only from gallery\n\n```javascript\nImagePicker.openPicker({\n  mediaType: \"video\",\n}).then((video) => {\n  console.log(video);\n});\n```\n\n**Android: The prop 'cropping' has been known to cause videos not to be display in the gallery on Android. Please do not set cropping to true when selecting videos.**\n\n\n### Select from camera \n\n#### Image\n\n```javascript\nImagePicker.openCamera({\n  width: 300,\n  height: 400,\n  cropping: true,\n}).then(image => {\n  console.log(image);\n});\n```\n\n#### Video\n\n```javascript\nImagePicker.openCamera({\n  mediaType: 'video',\n}).then(image => {\n  console.log(image);\n});\n```\n\n### Crop picture\n\n```javascript\nImagePicker.openCropper({\n  path: 'my-file-path.jpg',\n  width: 300,\n  height: 400\n}).then(image => {\n  console.log(image);\n});\n```\n\n### Optional cleanup\n\nModule is creating tmp images which are going to be cleaned up automatically somewhere in the future. If you want to force cleanup, you can use `clean` to clean all tmp files, or `cleanSingle(path)` to clean single tmp file.\n\n```javascript\nImagePicker.clean().then(() => {\n  console.log('removed all tmp images from tmp directory');\n}).catch(e => {\n  alert(e);\n});\n```\n\n### Request Object\n\n| Property                                |                   Type                   | Description                           |\n| --------------------------------------- | :--------------------------------------: | :--------------------------------------- |\n| cropping                                |           bool (default false)           | Enable or disable cropping               |\n| width                                   |                  number                  | Width of result image when used with `cropping` option |\n| height                                  |                  number                  | Height of result image when used with `cropping` option |\n| multiple                                |           bool (default false)           | Enable or disable multiple image selection |\n| writeTempFile (ios only)                |           bool (default true)            | When set to false, does not write temporary files for the selected images. This is useful to improve performance when you are retrieving file contents with the `includeBase64` option and don't need to read files from disk. |\n| includeBase64                           |           bool (default false)           | When set to true, the image file content will be available as a base64-encoded string in the `data` property. Hint: To use this string as an image source, use it like: ``<Image source={{uri: `data:${image.mime};base64,${image.data}`}} />`` |\n| includeExif                           |           bool (default false)           | Include image exif data in the response |\n| avoidEmptySpaceAroundImage            |           bool (default true)           |  When set to true, the image will always fill the mask space. |\n| cropperActiveWidgetColor (android only) |       string (default `\"#424242\"`)       | When cropping image, determines ActiveWidget color. |\n| cropperStatusBarColor (android only)    |        string (default `#424242`)        | When cropping image, determines the color of StatusBar. |\n| cropperToolbarColor (android only)      |        string (default `#424242`)        | When cropping image, determines the color of Toolbar. |\n| freeStyleCropEnabled (android only)      |        bool (default false)        | Enables user to apply custom rectangle area for cropping |\n| cropperToolbarTitle                     |        string (default `Edit Photo`)     | When cropping image, determines the title of Toolbar. |\n| cropperCircleOverlay                    |           bool (default false)           | Enable or disable circular cropping mask. |\n| disableCropperColorSetters (android only)|           bool (default false)           | When cropping image, disables the color setters for cropping library. |\n| minFiles (ios only)                     |            number (default 1)            | Min number of files to select when using `multiple` option |\n| maxFiles (ios only)                     |            number (default 5)            | Max number of files to select when using `multiple` option |\n| waitAnimationEnd (ios only)             |           bool (default true)            | Promise will resolve/reject once ViewController `completion` block is called |\n| smartAlbums (ios only)                  | array ([supported values](https://github.com/ivpusic/react-native-image-crop-picker/blob/master/README.md#smart-album-types-ios)) (default ['UserLibrary', 'PhotoStream', 'Panoramas', 'Videos', 'Bursts']) | List of smart albums to choose from      |\n| useFrontCamera                          |           bool (default false)           | Whether to default to the front/'selfie' camera when opened |\n| compressVideoPreset (ios only)          |      string (default MediumQuality)      | Choose which preset will be used for video compression |\n| compressImageMaxWidth                   |          number (default none)           | Compress image with maximum width        |\n| compressImageMaxHeight                  |          number (default none)           | Compress image with maximum height       |\n| compressImageQuality                    |            number (default 1 (Android)/0.8 (iOS))            | Compress image with quality (from 0 to 1, where 1 is best quality). On iOS, values larger than 0.8 don't produce a noticable quality increase in most images, while a value of 0.8 will reduce the file size by about half or less compared to a value of 1. |\n| loadingLabelText (ios only)             | string (default \"Processing assets...\")  | Text displayed while photo is loading in picker |\n| mediaType                               |           string (default any)           | Accepted mediaType for image selection, can be one of: 'photo', 'video', or 'any' |\n| showsSelectedCount (ios only)           |           bool (default true)            | Whether to show the number of selected assets |\n| forceJpg (ios only)           |           bool (default false)            | Whether to convert photos to JPG. This will also convert any Live Photo into its JPG representation |\n| showCropGuidelines (android only)       |           bool (default true)            | Whether to show the 3x3 grid on top of the image during cropping |\n| showCropFrame (android only)       |           bool (default true)            | Whether to show crop frame during cropping |\n| hideBottomControls (android only)       |           bool (default false)           | Whether to display bottom controls       |\n| enableRotationGesture (android only)    |           bool (default false)           | Whether to enable rotating the image by hand gesture |\n| cropperChooseText (ios only)            |           string (default choose)        | Choose button text |\n| cropperCancelText (ios only)            |           string (default Cancel)        | Cancel button text |\n\n#### Smart Album Types (ios)\n\n```\n['PhotoStream', 'Generic', 'Panoramas', 'Videos', 'Favorites', 'Timelapses', 'AllHidden', 'RecentlyAdded', 'Bursts', 'SlomoVideos', 'UserLibrary', 'SelfPortraits', 'Screenshots', 'DepthEffect', 'LivePhotos', 'Animated', 'LongExposure']\n```\n\n### Response Object\n\n| Property                  |  Type  | Description                              |\n| ------------------------- | :----: | :--------------------------------------- |\n| path                      | string | Selected image location. This is null when the `writeTempFile` option is set to false. |\n| localIdentifier(ios only) | string | Selected images' localidentifier, used for PHAsset searching |\n| sourceURL(ios only)       | string | Selected images' source path, do not have write access |\n| filename(ios only)        | string | Selected images' filename                |\n| width                     | number | Selected image width                     |\n| height                    | number | Selected image height                    |\n| mime                      | string | Selected image MIME type (image/jpeg, image/png) |\n| size                      | number | Selected image size in bytes             |\n| data                      | base64 | Optional base64 selected file representation |\n| exif                      | object | Extracted exif data from image. Response format is platform specific |\n| cropRect                  | object | Cropped image rectangle (width, height, x, y)    |\n| creationDate (ios only)   | string | UNIX timestamp when image was created    |\n| modificationDate          | string | UNIX timestamp when image was last modified |\n\n# Install\n\n## Step 1\n\n```bash\nnpm i react-native-image-crop-picker --save\n```\n\n## Step 2\n\n### iOS\n\n#### - If you use Cocoapods which is highly recommended:\n\n```bash\ncd ios\npod init\n```\n\nAfter this edit Podfile. Example content is following:\n\n```bash\nplatform :ios, '8.0'\n\ntarget '<project_name>' do\n  # this is very important to have!\n  rn_path = '../node_modules/react-native'\n  pod 'yoga', path: \"#{rn_path}/ReactCommon/yoga/yoga.podspec\"\n  pod 'React', path: rn_path, subspecs: [\n    'Core',\n    'RCTActionSheet',\n    'RCTAnimation',\n    'RCTGeolocation',\n    'RCTImage',\n    'RCTLinkingIOS',\n    'RCTNetwork',\n    'RCTSettings',\n    'RCTText',\n    'RCTVibration',\n    'RCTWebSocket'\n  ]\n\n  pod 'RNImageCropPicker', :path =>  '../node_modules/react-native-image-crop-picker'\nend\n\n# very important to have, unless you removed React dependencies for Libraries \n# and you rely on Cocoapods to manage it\npost_install do |installer|\n  installer.pods_project.targets.each do |target|\n    if target.name == \"React\"\n      target.remove_from_project\n    end\n  end\nend\n```\n\nAfter this run:\n\n```bash\npod install\n```\n\nAfter this use `ios/<project_name>.xcworkspace`. **Do not use** `ios/<project_name>.xcodeproj`.\n\n#### - If you are not using Cocoapods which is not recommended:\n\n```bash\nreact-native link react-native-image-crop-picker\n```\n\n### Android\n\n```bash\nreact-native link react-native-image-crop-picker\n```\n\n## Post-install steps\n\n### iOS\n\n#### Step 1\n\nIn Xcode open Info.plist and add string key `NSPhotoLibraryUsageDescription` with value that describes why you need access to user photos. More info here https://forums.developer.apple.com/thread/62229. Depending on what features you use, you also may need `NSCameraUsageDescription` and `NSMicrophoneUsageDescription` keys.\n\n#### Step 2\n\n##### Only if you are not using Cocoapods\n\n- Click on project General tab\n  - Under `Deployment Info` set `Deployment Target` to `8.0`\n  - Under `Embedded Binaries` click `+` and add `RSKImageCropper.framework` and `QBImagePicker.framework`\n  \n#### Step Optional - To localizate the camera / gallery text buttons\n\n- Open your Xcode project\n- Go to your project settings by opening the project name on the Navigation (left side)\n- Select your project in the project list \n- Should be into the Info tab and add in Localizations the language your app was missing throughout the +\n- Rebuild and you should now have your app camera and gallery with the classic ios text in the language you added.\n\n### Android\n\n- Make sure you are using Gradle >= `2.2.x` (android/build.gradle)\n\n```gradle\nbuildscript {\n    ...\n    dependencies {\n        classpath 'com.android.tools.build:gradle:2.2.3'\n        ...\n    }\n    ...\n}\n```\n\n- **VERY IMPORTANT** Add the following to your `build.gradle`'s repositories section. (android/build.gradle)\n\n```gradle\nallprojects {\n    repositories {\n      mavenLocal()\n      jcenter()\n      maven { url \"$rootDir/../node_modules/react-native/android\" }\n\n      // ADD THIS\n      maven { url 'https://maven.google.com' }\n\n      // ADD THIS\n      maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\n- Add `useSupportLibrary` (android/app/build.gradle)\n\n```gradle\nandroid {\n    ...\n\n    defaultConfig {\n        ...\n        vectorDrawables.useSupportLibrary = true\n        ...\n    }\n    ...\n}\n```\n\n- Use Android SDK >= 26 (android/app/build.gradle)\n\n```gradle\nandroid {\n    compileSdkVersion 27\n    buildToolsVersion \"27.0.3\"\n    ...\n    \n    defaultConfig {\n      ...\n      targetSdkVersion 27\n      ...\n    }\n    ...\n}\n```\n\n- [Optional] If you want to use camera picker in your project, add following to `app\\src\\main\\AndroidManifest.xml`\n  - `<uses-permission android:name=\"android.permission.CAMERA\"/>`\n\n- [Optional] If you want to use front camera, also add following to `app\\src\\main\\AndroidManifest.xml`\n  - `<uses-feature android:name=\"android.hardware.camera\" android:required=\"false\" />`\n  - `<uses-feature android:name=\"android.hardware.camera.front\" android:required=\"false\" />`\n\n## Production build\n\n### iOS\n\n#### Cocoapods (Highly recommended)\n\n- You are already done\n\n#### Manual\n\nIf you are using pre-built frameworks from `ios/ImageCropPickerSDK`, then before deploying app to production you should strip off simulator ARCHs from these, or you can add frameworks from `Libraries/imageCropPicker/Libraries/_framework_name_.xcodeproj/Products/_framework_name_.framework` to Embedded Binaries instead of pre-built ones.\nRelated issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/61.\n\nDetails for second approach:\n\n1. Remove the pre-built frameworks from `Embedded Binaries`\n2. Build for Device\n3. Add the newly built binaries for both frameworks to `Embedded Binaries` (located at `Libraries/imageCropPicker/Libraries/_framework_name_.xcodeproj/Products/_framework_name_.framework`)\n\n## TO DO\n\n- [ ] [Android] Standardize multiple select\n- [ ] [Android] Video compression\n\n\n## Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute]](CONTRIBUTING.md).\n<a href=\"graphs/contributors\"><img src=\"https://opencollective.com/react-native-image-crop-picker/contributors.svg?width=890\" /></a>\n\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/react-native-image-crop-picker#backer)]\n\n<a href=\"https://opencollective.com/react-native-image-crop-picker#backers\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/backers.svg?width=890\"></a>\n\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/react-native-image-crop-picker#sponsor)]\n\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/0/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/1/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/2/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/3/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/4/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/4/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/5/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/5/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/6/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/6/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/7/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/7/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/8/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/8/avatar.svg\"></a>\n<a href=\"https://opencollective.com/react-native-image-crop-picker/sponsor/9/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-native-image-crop-picker/sponsor/9/avatar.svg\"></a>\n\n\n\n## License\n*MIT*\n","readmeFilename":"README.md"}