Skip to content

Commit

Permalink
fix: 增加asset中的id (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: maikai (A) <[email protected]>
  • Loading branch information
ajkshfjkaj and maikai (A) authored Aug 12, 2024
1 parent 2c865e3 commit 587e624
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export class ImagePickerTurboModule extends TurboModule {
const { fileName, type } = this.getImgTypeAndName(uri);
imgObj.fileName = fileName;
imgObj.type = type;
imgObj.id = fileName;
imgObj.originalPath = uri;
let file = fs.openSync(uri, fs.OpenMode.CREATE);
imgObj.fileSize = this.getFileSize(file.fd);
Expand Down

0 comments on commit 587e624

Please sign in to comment.