From dc13ed3b5ee493e2c5aebe17036d0d6162417816 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Tue, 23 Jan 2024 09:58:06 -0300 Subject: [PATCH] fix: iOS upload a file with gif and heic format (#5457) * fix: iOS upload with gif format * update the package json * update library --------- Co-authored-by: Gleidson Daniel Silva --- app/containers/MessageBox/index.tsx | 3 +-- package.json | 2 +- yarn.lock | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/containers/MessageBox/index.tsx b/app/containers/MessageBox/index.tsx index 5dfdbff55c..20c8f18140 100644 --- a/app/containers/MessageBox/index.tsx +++ b/app/containers/MessageBox/index.tsx @@ -73,8 +73,7 @@ const imagePickerConfig = { const libraryPickerConfig: Options = { multiple: true, compressVideoPreset: 'Passthrough', - mediaType: 'any', - forceJpg: true + mediaType: 'any' }; const videoPickerConfig: Options = { diff --git a/package.json b/package.json index df2daed2f0..3e6da59214 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "react-native-fast-image": "RocketChat/react-native-fast-image.git#bump-version", "react-native-file-viewer": "^2.1.4", "react-native-gesture-handler": "2.4.2", - "react-native-image-crop-picker": "RocketChat/react-native-image-crop-picker", + "react-native-image-crop-picker": "RocketChat/react-native-image-crop-picker#54e1e1c7e7d4b731c74ce9dd1bf9eb5148065092", "react-native-image-progress": "^1.1.1", "react-native-katex": "^0.5.1", "react-native-linear-gradient": "^2.6.2", diff --git a/yarn.lock b/yarn.lock index d5b08d6599..1071b07c9b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17739,9 +17739,9 @@ react-native-gradle-plugin@^0.0.6: resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.0.6.tgz#b61a9234ad2f61430937911003cddd7e15c72b45" integrity sha512-eIlgtsmDp1jLC24dRn43hB3kEcZVqx6DUQbR0N1ABXGnMEafm9I3V3dUUeD1vh+Dy5WqijSoEwLNUPLgu5zDMg== -react-native-image-crop-picker@RocketChat/react-native-image-crop-picker: +react-native-image-crop-picker@RocketChat/react-native-image-crop-picker#54e1e1c7e7d4b731c74ce9dd1bf9eb5148065092: version "0.36.3" - resolved "https://codeload.github.com/RocketChat/react-native-image-crop-picker/tar.gz/35f5c90576cadcdd4c0eb5cef83a9f1b7b7e26e3" + resolved "https://codeload.github.com/RocketChat/react-native-image-crop-picker/tar.gz/54e1e1c7e7d4b731c74ce9dd1bf9eb5148065092" react-native-image-progress@^1.1.1: version "1.1.1"