We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6936e0 commit e30decfCopy full SHA for e30decf
package/expo-package/src/optionalDependencies/getPhotos.ts
@@ -42,12 +42,13 @@ export const getPhotos = MediaLibrary
42
});
43
const assets = await Promise.all(
44
results.assets.map(async (asset) => {
45
- const assetInfo = await MediaLibrary.getAssetInfoAsync(asset);
+ const assetInfo = await MediaLibrary.getAssetInfoAsync(asset.id);
46
return {
47
duration: asset.duration * 1000,
48
height: asset.height,
49
id: asset.id,
50
name: asset.filename,
51
+ originalUri: asset.uri,
52
source: 'picker' as const,
53
type: asset.mediaType,
54
uri: assetInfo.localUri,
0 commit comments