{"_id":"@dblackker/cameraroll","_rev":"2-f409f412a85046ef4e93e005fb3d4a52","name":"@dblackker/cameraroll","dist-tags":{"latest":"1.3.4"},"versions":{"1.3.3":{"name":"@dblackker/cameraroll","author":{"name":"Bartol Karuza","email":"bartol.k@gmail.com"},"homepage":"https://github.com/react-native-community/react-native-cameraroll#readme","version":"1.3.3","description":"React Native Camera Roll for iOS & Android","main":"./js/CameraRoll.js","types":"./typings/CameraRoll.d.ts","publishConfig":{"access":"public"},"scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn validate:typescript && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","validate:typescript":"tsc --project ./","test:jest":"jest js/","test:detox:android:test:debug":"detox test -c android.emu.debug","test:detox:android:test:release":"detox test -c android.emu.release","test:detox:android:build:debug":"detox build -c android.emu.debug","test:detox:android:build:release":"detox build -c android.emu.release","test:detox:android:bundle:release":"mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file example/index.js --bundle-output .tmp/android-bundle.js","test:detox:ios:test:debug":"detox test -c ios.sim.debug","test:detox:ios:test:release":"detox test -c ios.sim.release","test:detox:ios:build:debug":"detox build -c ios.sim.debug","test:detox:ios:build:release":"detox build -c ios.sim.release","test:detox:ios:bundle:release":"mkdir -p .tmp && react-native bundle --max-workers 4 --platform ios --dev false --entry-file example/index.js --bundle-output .tmp/ios-bundle.js","test:detox:clean":"rimraf example/android/build && rimraf example/android/app/build && rimraf example/android/.gradle && rimraf example/ios/build","ci:publish":"yarn semantic-release","semantic-release":"semantic-release"},"keywords":["react-native","react native","cameraroll","camera","photo gallery"],"license":"MIT","peerDependencies":{"react":"^16.0","react-native":">=0.57 <=0.59"},"devDependencies":{"@babel/core":"^7.4.3","@react-native-community/eslint-config":"^0.0.5","@semantic-release/git":"7.0.8","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"^5.16.0","eslint-plugin-prettier":"^3.0.1","flow-bin":"^0.86.0","husky":"^2.2.0","jest":"24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.17.0","pretty-quick":"^1.10.0","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","rimraf":"^2.6.3","semantic-release":"15.13.3","typescript":"^3.4.1"},"rn-docs":{"title":"CameraRoll","type":"API"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"resolutions":{"lodash":"4.17.15"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/CameraRollExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/CameraRollExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme CameraRollExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/CameraRollExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/CameraRollExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme CameraRollExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}}},"repository":{"type":"git","url":"git+https://github.com/dblackker/react-native-cameraroll.git"},"gitHead":"237981467592532e4386d3dd159f85f28dee1b2a","bugs":{"url":"https://github.com/dblackker/react-native-cameraroll/issues"},"_id":"@dblackker/cameraroll@1.3.3","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"dblackker","email":"danielablack@gmail.com"},"dist":{"integrity":"sha512-wKOLUzdIIPHlLeLJZnN4Yhop9Z3uG0EX1Rrn/S7C69Q2l9IQYn8ysK6U7Pxx6md4Z8B0vWaeqJf9is14rGkkcw==","shasum":"060d1c0470fbae8b2ba290cc8949389a455b7fc2","tarball":"https://registry.npmjs.org/@dblackker/cameraroll/-/cameraroll-1.3.3.tgz","fileCount":27,"unpackedSize":86982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8lbtCRA9TVsSAnZWagAAMVsP/i2aCl227hL0O1c3S3MB\nmjD1iDCR8rCyNQ8Ur6bPbod39Wod7IlZvUm0ii0bHRK+456DgYQAl86wr9tU\nuWepaMKt2mUpjLnXLHoK4ARFzKKMk0F1b24xWqXxp7EgwteZMS6M4JsnI+Fe\nPQbNYiOEUmopTQ6qN27N4yJ+v07CP0uqKlJmA0I3ohE9/biYpofltz/0VPHi\n4ARDoBtZYZDjNhpLbb8kHCYJ1xBgv979zgyvZQYvmcU2DKcatN0AEjGyCxSU\n5kLZ+0hkLHYGg1T2v/ZjwbJMgKI1/ETbcr8GBf2H1Hq/Iam9A7h+GgKa6z/8\nPHcHgDlHpVVVbWhEuq5sOF8eAvGiTrVACGb1ib1oIdSB7z34hySmpaj5o5on\n2WKOGgWgmjo7RzPgeuCqQQCRmQjbj6Re38wbJ7sdakIx/Ln42DgnX2LQk9vw\nRY5FsmKIUJNKbBLSPVR2mUVlCijRcq/Rlc1xCgKNoDTQOHRQ4cp3/23A23CE\nzen+p5N/Mq3SHSE+E6KJoz0OowmKeYbymUtYiZapuMeDDl+/dtlrhHFXiHQV\neO29KA4Zo4c3aWKQ4UOwsV2SUJuWy9ogXdHs9TKBNN/NhSe1H4IlMjGeSMqX\n/VAQqDrQ/O4JjDH2kwcNhR5wfPfuIOQ0uTZy/D0oRcsZXmJa/3qy5sEbmRph\np8aJ\r\n=mCDo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz6jzbDkZEQXZjddl0LwI4QiK94JjKgEBUBtlY03izjwIhAOpKxCl1ChZSqdIN6vGdHRSDneJGDiPjpadx+Rgi3R3t"}]},"maintainers":[{"name":"dblackker","email":"danielablack@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cameraroll_1.3.3_1576163052681_0.026830129206562026"},"_hasShrinkwrap":false},"1.3.4":{"name":"@dblackker/cameraroll","author":{"name":"Bartol Karuza","email":"bartol.k@gmail.com"},"homepage":"https://github.com/react-native-community/react-native-cameraroll#readme","version":"1.3.4","description":"React Native Camera Roll for iOS & Android","main":"./js/CameraRoll.js","types":"./typings/CameraRoll.d.ts","publishConfig":{"access":"public"},"scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn validate:typescript && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","validate:typescript":"tsc --project ./","test:jest":"jest js/","test:detox:android:test:debug":"detox test -c android.emu.debug","test:detox:android:test:release":"detox test -c android.emu.release","test:detox:android:build:debug":"detox build -c android.emu.debug","test:detox:android:build:release":"detox build -c android.emu.release","test:detox:android:bundle:release":"mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file example/index.js --bundle-output .tmp/android-bundle.js","test:detox:ios:test:debug":"detox test -c ios.sim.debug","test:detox:ios:test:release":"detox test -c ios.sim.release","test:detox:ios:build:debug":"detox build -c ios.sim.debug","test:detox:ios:build:release":"detox build -c ios.sim.release","test:detox:ios:bundle:release":"mkdir -p .tmp && react-native bundle --max-workers 4 --platform ios --dev false --entry-file example/index.js --bundle-output .tmp/ios-bundle.js","test:detox:clean":"rimraf example/android/build && rimraf example/android/app/build && rimraf example/android/.gradle && rimraf example/ios/build","ci:publish":"yarn semantic-release","semantic-release":"semantic-release"},"keywords":["react-native","react native","cameraroll","camera","photo gallery"],"license":"MIT","peerDependencies":{"react":"^16.0","react-native":">=0.57 <=0.59"},"devDependencies":{"@babel/core":"^7.4.3","@react-native-community/eslint-config":"^0.0.5","@semantic-release/git":"7.0.8","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"^5.16.0","eslint-plugin-prettier":"^3.0.1","flow-bin":"^0.86.0","husky":"^2.2.0","jest":"24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.17.0","pretty-quick":"^1.10.0","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","rimraf":"^2.6.3","semantic-release":"15.13.3","typescript":"^3.4.1"},"rn-docs":{"title":"CameraRoll","type":"API"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"resolutions":{"lodash":"4.17.15"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/CameraRollExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/CameraRollExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme CameraRollExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/CameraRollExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/CameraRollExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme CameraRollExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}}},"repository":{"type":"git","url":"git+https://github.com/dblackker/react-native-cameraroll.git"},"gitHead":"f44ef1c33f35f2f7a15b194180d59779ae3f248e","bugs":{"url":"https://github.com/dblackker/react-native-cameraroll/issues"},"_id":"@dblackker/cameraroll@1.3.4","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"dblackker","email":"danielablack@gmail.com"},"dist":{"integrity":"sha512-cLTKrwPlBiHOBMajaQyCjLTx0JuMO6tp/iw+tWP0NS3ozHZxJbHxF6KophAFtivsY5EMbxISOUUK6S9jgXcYFw==","shasum":"291ff7cdaefa58bb6f12f1d5a81cf69732c2bbde","tarball":"https://registry.npmjs.org/@dblackker/cameraroll/-/cameraroll-1.3.4.tgz","fileCount":27,"unpackedSize":86927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd86HkCRA9TVsSAnZWagAAcL8P/AhwK4UbNO9y8/MLBKv2\n9bsiyBlkanKl7t8EzalK1Q3l0L0tkrKRbYV6jlLZR8X7HGCIG9Y510sP1Dng\n+uFp0JwaYrw6SQdbr4pieny9pvGAI8hCIbPhK0wtL0kmeaAIUR0t3MdxPF4o\nq0KETvX8IGcmH8LQpQ6lvd8oq17wvQuzT2oJLeerayGf60PtQ+W/Cvi/SSYS\nxVOnZ5MyDPtLP5t0LuwKpm4eItnnRNVAbmFrg5haBlC/eYX5qm2M00yI70s5\nZ25o/nTDDwqjbl3o4H7SB1rmd4MDfzoHvsV5/nRzcqfGOVbdAqKer3c5zjwY\nAi8QzbUp1T6YbYPio/j/SV8RvXt+HsYFF28X11ruyyWqZPXnZuYOfVpdxfE2\nJlAwBB0SuiNorDCCCyM5ZTSYCyuVPJrhVPmF32x2B3hiQi3uMTQjgS/I4/7W\n3juPudueWrHapNRbGH40Sw7EAZUdMePDW861xzqTY+6hlsJaa8pAsjA5rslV\npnLSEUXjUFaLwfWQUZN39z9Q2Agw+dc60sOAa4sYLuowEz39+wsTO3wyD04r\ntkNWJ3voPH6VCZtIrd0Sr2EWAOspBtsNZe+1Lmlh0SE1gtFVvQkGPLZn2Xlx\nAUkvEfN4j9piKgw543HNmIbE/va9r+gerM3lgzLc7NKLMdEl7CO/Ffsxv07w\n7X7K\r\n=Fiu0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7X/jGsgpvqgpNqEaumqI9wdmCZKqeJrwHn8lvFPWxvAiEAp7ic5i9R04wnyjGBvmsGM1/28c/Qvhf4jYCJyZqD9ag="}]},"maintainers":[{"name":"dblackker","email":"danielablack@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cameraroll_1.3.4_1576247779646_0.9267653631941966"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-12T15:04:12.648Z","1.3.3":"2019-12-12T15:04:12.839Z","modified":"2022-04-05T03:17:37.802Z","1.3.4":"2019-12-13T14:36:19.740Z"},"maintainers":[{"name":"dblackker","email":"danielablack@gmail.com"}],"description":"React Native Camera Roll for iOS & Android","homepage":"https://github.com/react-native-community/react-native-cameraroll#readme","keywords":["react-native","react native","cameraroll","camera","photo gallery"],"repository":{"type":"git","url":"git+https://github.com/dblackker/react-native-cameraroll.git"},"author":{"name":"Bartol Karuza","email":"bartol.k@gmail.com"},"bugs":{"url":"https://github.com/dblackker/react-native-cameraroll/issues"},"license":"MIT","readme":"# `@react-native-community/cameraroll`\n\n[![CircleCI Status](https://img.shields.io/circleci/project/github/react-native-community/react-native-cameraroll/master.svg)](https://circleci.com/gh/react-native-community/workflows/react-native-cameraroll/tree/master) ![Supports Android and iOS](https://img.shields.io/badge/platforms-android%20|%20ios-lightgrey.svg) ![MIT License](https://img.shields.io/npm/l/@react-native-community/cameraroll.svg)\n\n## Getting started\n\n`$ npm install @react-native-community/cameraroll --save`\n\n### Mostly automatic installation\n\n`$ react-native link @react-native-community/cameraroll && cd ios && pod install`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `@react-native-community/cameraroll` and add `RNCCameraroll.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNCCameraroll.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)<\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainApplication.java`\n  - Add `import com.reactnativecommunity.cameraroll.CameraRollPackage;` to the imports at the top of the file\n  - Add `new CameraRollPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':@react-native-community_cameraroll'\n  \tproject(':@react-native-community_cameraroll').projectDir = new File(rootProject.projectDir, \t'../node_modules/@react-native-community/cameraroll/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':@react-native-community_cameraroll')\n  \t```\n\n## Migrating from the core `react-native` module\nThis module was created when the CameraRoll was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from:\n\n```javascript\nimport { CameraRoll } from \"react-native\";\n```\n\nto:\n\n```javascript\nimport CameraRoll from \"@react-native-community/cameraroll\";\n```\n\n## Usage\n\n`CameraRoll` provides access to the local camera roll or photo library.\n\n### Permissions\n\nThe user's permission is required in order to access the Camera Roll on devices running iOS 10 or later. Add the `NSPhotoLibraryUsageDescription` key in your `Info.plist` with a string that describes how your app will use this data. This key will appear as `Privacy - Photo Library Usage Description` in Xcode.\n\nIf you are targeting devices running iOS 11 or later, you will also need to add the `NSPhotoLibraryAddUsageDescription` key in your `Info.plist`. Use this key to define a string that describes how your app will use this data. By adding this key to your `Info.plist`, you will be able to request write-only access permission from the user. If you try to save to the camera roll without this permission, your app will exit.\n\nOn Android permission is required to read the external storage. Add below line to your manifest to request this permission on app install.\n\n```\n<manifest>\n...\n<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>\n...\n<application>\n```\n\n### Methods\n\n* [`saveToCameraRoll`](#savetocameraroll)\n* [`save`](#save)\n* [`getPhotos`](#getphotos)\n* [`deletePhotos`](#deletephotos)\n\n---\n\n# Reference\n\n## Methods\n\n### `save()`\n\nSaves the photo or video of a particular type to an album. This function works the same as `saveToCameraRoll`, but it allows to specify a particular album you want to store the asset to.\n\n```javascript\nCameraRoll.save(tag, { type, album })\n```\n\n### `saveToCameraRoll()`\n\n```javascript\nCameraRoll.saveToCameraRoll(tag, [type]);\n```\n\nSaves the photo or video to the photo library.\n\nOn Android, the tag must be a local image or video URI, such as `\"file:///sdcard/img.png\"`.\n\nOn iOS, the tag can be any image URI (including local, remote asset-library and base64 data URIs) or a local video file URI (remote or data URIs are not supported for saving video at this time).\n\nIf the tag has a file extension of .mov or .mp4, it will be inferred as a video. Otherwise it will be treated as a photo. To override the automatic choice, you can pass an optional `type` parameter that must be one of 'photo' or 'video'.\n\nReturns a Promise which will resolve with the new URI.\n\n**Parameters:**\n\n| Name | Type                   | Required | Description                                                |\n| ---- | ---------------------- | -------- | ---------------------------------------------------------- |\n| tag  | string                 | Yes      | See above.                                                 |\n| type | enum('photo', 'video') | No       | Overrides automatic detection based on the file extension. |\n\n---\n\n### `getPhotos()`\n\n```javascript\nCameraRoll.getPhotos(params);\n```\n\nReturns a Promise with photo identifier objects from the local camera roll of the device matching shape defined by `getPhotosReturnChecker`.\n\n**Parameters:**\n\n| Name   | Type   | Required | Description                                      |\n| ------ | ------ | -------- | ------------------------------------------------ |\n| params | object | Yes      | Expects a params with the shape described below. |\n\n* `first` : {number} : The number of photos wanted in reverse order of the photo application (i.e. most recent first for SavedPhotos). Required.\n* `after` : {string} : A cursor that matches `page_info { end_cursor }` returned from a previous call to `getPhotos`.\n* `groupTypes` : {string} : Specifies which group types to filter the results to. Valid values are:\n  * `Album`\n  * `All` // default\n  * `Event`\n  * `Faces`\n  * `Library`\n  * `PhotoStream`\n  * `SavedPhotos`\n* `groupName` : {string} : Specifies filter on group names, like 'Recent Photos' or custom album titles.\n* `assetType` : {string} : Specifies filter on asset type. Valid values are:\n  * `All`\n  * `Videos`\n  * `Photos` // default\n* `mimeTypes` : {Array} : Filter by mimetype (e.g. image/jpeg).\n\nReturns a Promise which when resolved will be of the following shape:\n\n* `edges` : {Array<node>} An array of node objects\n  * `node`: {object} An object with the following shape:\n    * `type`: {string}\n    * `group_name`: {string}\n    * `image`: {object} : An object with the following shape:\n      * `uri`: {string}\n      * `filename`: {string}\n      * `height`: {number}\n      * `width`: {number}\n      * `isStored`: {boolean}\n      * `playableDuration`: {number}\n    * `timestamp`: {number}\n    * `location`: {object} : An object with the following shape:\n      * `latitude`: {number}\n      * `longitude`: {number}\n      * `altitude`: {number}\n      * `heading`: {number}\n      * `speed`: {number}\n* `page_info` : {object} : An object with the following shape:\n  * `has_next_page`: {boolean}\n  * `start_cursor`: {string}\n  * `end_cursor`: {string}\n\n#### Example\n\nLoading images:\n\n```javascript\n_handleButtonPress = () => {\n   CameraRoll.getPhotos({\n       first: 20,\n       assetType: 'Photos',\n     })\n     .then(r => {\n       this.setState({ photos: r.edges });\n     })\n     .catch((err) => {\n        //Error Loading Images\n     });\n   };\nrender() {\n return (\n   <View>\n     <Button title=\"Load Images\" onPress={this._handleButtonPress} />\n     <ScrollView>\n       {this.state.photos.map((p, i) => {\n       return (\n         <Image\n           key={i}\n           style={{\n             width: 300,\n             height: 100,\n           }}\n           source={{ uri: p.node.image.uri }}\n         />\n       );\n     })}\n     </ScrollView>\n   </View>\n );\n}\n```  \n---\n### `deletePhotos()`\n\n```javascript\nCameraRoll.deletePhotos([uri]);\n```\n\nRequests deletion of photos in the camera roll.\n\nOn Android, the uri must be a local image or video URI, such as `\"file:///sdcard/img.png\"`.\n\nOn iOS, the uri can be any image URI (including local, remote asset-library and base64 data URIs) or a local video file URI. The user is presented with a dialog box that shows them the asset(s) and asks them to confirm deletion. This is not able to be bypassed as per Apple Developer guidelines. \n\nReturns a Promise which will resolve when the deletion request is completed, or reject if there is a problem during the deletion. On iOS the user is able to cancel the deletion request, which causes a rejection, while on Android the rejection will be due to a system error.\n\n**Parameters:**\n\n| Name | Type                   | Required | Description                                                |\n| ---- | ---------------------- | -------- | ---------------------------------------------------------- |\n| uri  | string                 | Yes      | See above.                                                 |\n","readmeFilename":"README.md"}