fix resizeImage
This commit is contained in:
parent
dab4720641
commit
ca22d63411
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue