fix resizeImage

This commit is contained in:
Ran Greenberg 2017-06-25 15:34:56 +03:00
parent dab4720641
commit ca22d63411
2 changed files with 4 additions and 5 deletions

View File

@ -36,6 +36,10 @@ async function getImagesForCameraEvent(event) {
});
return images;
}
async function resizeImage(image = {}, quality = 'original') {
console.log('Warning - CameraKitGallery.resizeImage isn\'t support on Android yet');
return;
}
async function checkDevicePhotosAuthorizationStatus() {
const isAuthorized = await NativeGalleryModule.checkDeviceStorageAuthorizationStatus();

View File

@ -47,11 +47,6 @@ async function resizeImage(image = {}, quality = 'original') {
return images;
}
if (Platform.os === 'android') {
console.log('resize image not supported on Android');
return;
}
const ans = await CKGallery.resizeImage(image, quality);
return ans;
}