mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-31 05:11:07 +00:00
fix: Making Promise return types consistent across iOS and Android, updating types to match. (#137)
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user