From b13ae5dafe1980eebd65064ca981928cba4becc0 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sun, 5 Jun 2022 18:52:33 +0200 Subject: [PATCH] Fixed #117 --- src/components/mediaSelector.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/mediaSelector.ts b/src/components/mediaSelector.ts index ad934ff2..ffc92b9f 100644 --- a/src/components/mediaSelector.ts +++ b/src/components/mediaSelector.ts @@ -109,7 +109,10 @@ const mediaSelector = async ({ includeExif: false, multiple: true, minFiles: 1, - maxFiles: _maximum + maxFiles: _maximum, + loadingLabelText: '', + compressImageMaxWidth: 4096, + compressImageMaxHeight: 4096 }).catch(() => {}) if (!images) { @@ -125,7 +128,10 @@ const mediaSelector = async ({ mediaType: 'photo', path: image.path, width: resize.width, - height: resize.height + height: resize.height, + cropperChooseText: i18next.t('common:buttons.apply'), + cropperCancelText: i18next.t('common:buttons.cancel'), + hideBottomControls: true }).catch(() => {}) croppedImage && croppedImages.push(croppedImage) } @@ -135,7 +141,8 @@ const mediaSelector = async ({ const selectVideo = async () => { const video = await ImagePicker.openPicker({ mediaType: 'video', - includeExif: false + includeExif: false, + loadingLabelText: '' }).catch(() => {}) if (video) {