From a01d1780381a170fb627e72dfe1710be06f8d7f5 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Fri, 9 Aug 2024 10:30:36 -1000 Subject: [PATCH] Merge pull request #47139 from software-mansion-labs/brtqkr/fix-remaining-heif-cases [CP Staging] Fix receipt conversion (cherry picked from commit ec640d57ed7561dc17b7b6a48e4ec2e543a91f64) (CP triggered by marcaaron) --- src/components/AttachmentPicker/index.native.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AttachmentPicker/index.native.tsx b/src/components/AttachmentPicker/index.native.tsx index 0a14d18a2324..edcdabed9101 100644 --- a/src/components/AttachmentPicker/index.native.tsx +++ b/src/components/AttachmentPicker/index.native.tsx @@ -174,8 +174,10 @@ function AttachmentPicker({type = CONST.ATTACHMENT_PICKER_TYPE.FILE, children, s if (isHEIC && targetAssetUri) { manipulateAsync(targetAssetUri, [], {format: SaveFormat.JPEG}) .then((manipResult) => { + const uri = manipResult.uri; const convertedAsset = { - uri: manipResult.uri, + uri, + name: uri.substring(uri.lastIndexOf('/') + 1).split('?')[0], type: 'image/jpeg', width: manipResult.width, height: manipResult.height,