From ca22d634111e9b7eb0512af59ec3f9624a0c8057 Mon Sep 17 00:00:00 2001 From: Ran Greenberg Date: Sun, 25 Jun 2017 15:34:56 +0300 Subject: [PATCH] fix resizeImage --- src/CameraKitGallery.android.js | 4 ++++ src/CameraKitGallery.ios.js | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/CameraKitGallery.android.js b/src/CameraKitGallery.android.js index b6c7fa7..3a874b2 100644 --- a/src/CameraKitGallery.android.js +++ b/src/CameraKitGallery.android.js @@ -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(); diff --git a/src/CameraKitGallery.ios.js b/src/CameraKitGallery.ios.js index 741d8a4..007d928 100644 --- a/src/CameraKitGallery.ios.js +++ b/src/CameraKitGallery.ios.js @@ -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; }