Skip to content

Commit

Permalink
Merge pull request #47139 from software-mansion-labs/brtqkr/fix-remai…
Browse files Browse the repository at this point in the history
…ning-heif-cases

[CP Staging] Fix receipt conversion

(cherry picked from commit ec640d5)

(CP triggered by marcaaron)
  • Loading branch information
marcaaron authored and OSBotify committed Aug 9, 2024
1 parent e73415b commit a01d178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/AttachmentPicker/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a01d178

Please sign in to comment.