From 4bddcd4e955d5b25fc242115c31ad6348063f45d Mon Sep 17 00:00:00 2001 From: iChengbo Date: Thu, 15 Jul 2021 16:47:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20chooseImage=20=E6=94=AF=E6=8C=81=20sizeT?= =?UTF-8?q?ype=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-rn/src/lib/chooseImage/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/taro-rn/src/lib/chooseImage/index.ts b/packages/taro-rn/src/lib/chooseImage/index.ts index 5a0239192260..d70c32c11606 100644 --- a/packages/taro-rn/src/lib/chooseImage/index.ts +++ b/packages/taro-rn/src/lib/chooseImage/index.ts @@ -50,10 +50,12 @@ function openCamera(options: Taro.chooseImage.Option): Promise { - const { count: imageCount, success, complete, fail } = options + const { count: imageCount, sizeType = [],success, complete, fail } = options return new Promise((resolve, reject) => { + // NOTE:react-native-syan-image-picker 暂不支持 Android 端压缩 SYImagePicker.showImagePicker({ imageCount, + quality: sizeType[0] === 'compressed' ? 70 : 90, }, (err, photos: any) => { if (err) { const res = {