Bluesky app fork with some witchin' additions 💫

Use Automatic representation for all image pickers (#8963)

authored by

Eric Bailey and committed by
GitHub
566e8698 c99500f5

+7 -3
+3 -1
src/lib/media/picker.shared.ts
··· 23 23 selectionLimit: 1, 24 24 ...opts, 25 25 legacy: true, 26 + preferredAssetRepresentationMode: 27 + UIImagePickerPreferredAssetRepresentationMode.Automatic, 26 28 }) 27 29 28 30 return (response.assets ?? []) ··· 54 56 base64: isWeb, 55 57 selectionLimit: isIOS ? selectionCountRemaining : undefined, 56 58 preferredAssetRepresentationMode: 57 - UIImagePickerPreferredAssetRepresentationMode.Current, 59 + UIImagePickerPreferredAssetRepresentationMode.Automatic, 58 60 videoMaxDuration: VIDEO_MAX_DURATION_MS / 1000, 59 61 }) 60 62 }
+4 -2
src/screens/Onboarding/StepProfile/index.tsx
··· 4 4 import { 5 5 type ImagePickerOptions, 6 6 launchImageLibraryAsync, 7 - MediaTypeOptions, 7 + UIImagePickerPreferredAssetRepresentationMode, 8 8 } from 'expo-image-picker' 9 9 import {msg, Trans} from '@lingui/macro' 10 10 import {useLingui} from '@lingui/react' ··· 97 97 const response = await sheetWrapper( 98 98 launchImageLibraryAsync({ 99 99 exif: false, 100 - mediaTypes: MediaTypeOptions.Images, 100 + mediaTypes: ['images'], 101 101 quality: 1, 102 102 ...opts, 103 103 legacy: true, 104 + preferredAssetRepresentationMode: 105 + UIImagePickerPreferredAssetRepresentationMode.Automatic, 104 106 }), 105 107 ) 106 108