diff --git a/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java b/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java index e320ba4d5..e3be3a11a 100644 --- a/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java +++ b/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java @@ -594,7 +594,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule { cursor.close(); if (deletedCount == mUris.size()) { - mPromise.resolve(null); + mPromise.resolve(true); } else { mPromise.reject(ERROR_UNABLE_TO_DELETE, "Could not delete all media, only deleted " + deletedCount + " photos."); diff --git a/typings/CameraRoll.d.ts b/typings/CameraRoll.d.ts index 576ce196d..cdab97c72 100644 --- a/typings/CameraRoll.d.ts +++ b/typings/CameraRoll.d.ts @@ -75,7 +75,7 @@ declare namespace CameraRoll { /** * Delete a photo from the camera roll or media library. photoUris is an array of photo uri's. */ - function deletePhotos(photoUris: Array): void; + function deletePhotos(photoUris: Array): Promise; /** * Saves the photo or video to the camera roll or photo library.