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
  • Loading branch information
marcaaron authored Aug 9, 2024
2 parents e73f2ec + e5f3b51 commit ec640d5
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 ec640d5

Please sign in to comment.