return gracefully when try to invoke resizeImage on Android

This commit is contained in:
Ran Greenberg 2017-06-20 11:27:51 +03:00
parent 8dbe951359
commit 36fd36bd38
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ async function resizeImage(image = {}, quality = 'original') {
if (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;
}