Skip to content

Commit e30decf

Browse files
committed
fix: expo media library
1 parent a6936e0 commit e30decf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/expo-package/src/optionalDependencies/getPhotos.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ export const getPhotos = MediaLibrary
4242
});
4343
const assets = await Promise.all(
4444
results.assets.map(async (asset) => {
45-
const assetInfo = await MediaLibrary.getAssetInfoAsync(asset);
45+
const assetInfo = await MediaLibrary.getAssetInfoAsync(asset.id);
4646
return {
4747
duration: asset.duration * 1000,
4848
height: asset.height,
4949
id: asset.id,
5050
name: asset.filename,
51+
originalUri: asset.uri,
5152
source: 'picker' as const,
5253
type: asset.mediaType,
5354
uri: assetInfo.localUri,

0 commit comments

Comments
 (0)