about summary refs log tree commit diff
path: root/src/screens
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-09-02 21:43:33 -0500
committerGitHub <noreply@github.com>2025-09-02 21:43:33 -0500
commit566e8698020ff3abd75b9dc8a0e798b402875df1 (patch)
tree800ffac6f113d8509796f74bd67fe4fda6d5a5f1 /src/screens
parentc99500f5d35b0b4cfd46c110bfd6c46628c156a1 (diff)
downloadvoidsky-566e8698020ff3abd75b9dc8a0e798b402875df1.tar.zst
Use Automatic representation for all image pickers (#8963)
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/Onboarding/StepProfile/index.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screens/Onboarding/StepProfile/index.tsx b/src/screens/Onboarding/StepProfile/index.tsx
index 1725daee3..6066e4297 100644
--- a/src/screens/Onboarding/StepProfile/index.tsx
+++ b/src/screens/Onboarding/StepProfile/index.tsx
@@ -4,7 +4,7 @@ import {Image as ExpoImage} from 'expo-image'
 import {
   type ImagePickerOptions,
   launchImageLibraryAsync,
-  MediaTypeOptions,
+  UIImagePickerPreferredAssetRepresentationMode,
 } from 'expo-image-picker'
 import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
@@ -97,10 +97,12 @@ export function StepProfile() {
       const response = await sheetWrapper(
         launchImageLibraryAsync({
           exif: false,
-          mediaTypes: MediaTypeOptions.Images,
+          mediaTypes: ['images'],
           quality: 1,
           ...opts,
           legacy: true,
+          preferredAssetRepresentationMode:
+            UIImagePickerPreferredAssetRepresentationMode.Automatic,
         }),
       )