return gracefully when try to invoke resizeImage on Android
This commit is contained in:
parent
8dbe951359
commit
36fd36bd38
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue