Skip to content

Commit

Permalink
fix file format
Browse files Browse the repository at this point in the history
  • Loading branch information
BrtqKr committed Aug 9, 2024
1 parent 87c116b commit e5f3b51
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 e5f3b51

Please sign in to comment.