Fix picking offloaded videos for IOS 26 (#10428)

This commit is contained in:
Samuel Newman
2026-05-06 14:40:22 +01:00
committed by GitHub
parent a7ed3ee3cc
commit 0b6ae1cc21
2 changed files with 31 additions and 0 deletions
+2
View File
@@ -2,6 +2,7 @@ import {
type ImagePickerOptions,
launchImageLibraryAsync,
UIImagePickerPreferredAssetRepresentationMode,
VideoExportPreset,
} from 'expo-image-picker'
import {t} from '@lingui/core/macro'
@@ -59,6 +60,7 @@ export async function openUnifiedPicker({
selectionLimit: IS_IOS ? selectionCountRemaining : undefined,
preferredAssetRepresentationMode:
UIImagePickerPreferredAssetRepresentationMode.Automatic,
videoExportPreset: VideoExportPreset.Passthrough,
videoMaxDuration: VIDEO_MAX_DURATION_MS / 1000,
})
}