Use Automatic representation for all image pickers (#8963)
This commit is contained in:
@@ -23,6 +23,8 @@ export async function openPicker(opts?: ImagePickerOptions) {
|
||||
selectionLimit: 1,
|
||||
...opts,
|
||||
legacy: true,
|
||||
preferredAssetRepresentationMode:
|
||||
UIImagePickerPreferredAssetRepresentationMode.Automatic,
|
||||
})
|
||||
|
||||
return (response.assets ?? [])
|
||||
@@ -54,7 +56,7 @@ export async function openUnifiedPicker({
|
||||
base64: isWeb,
|
||||
selectionLimit: isIOS ? selectionCountRemaining : undefined,
|
||||
preferredAssetRepresentationMode:
|
||||
UIImagePickerPreferredAssetRepresentationMode.Current,
|
||||
UIImagePickerPreferredAssetRepresentationMode.Automatic,
|
||||
videoMaxDuration: VIDEO_MAX_DURATION_MS / 1000,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user