From e03101f673e95b1348425acf5965fd95a962a23f Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 21 Nov 2022 18:44:12 +1300 Subject: [PATCH] Use document picker images type This hopefully works on ios as well. --- EditWorkout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EditWorkout.tsx b/EditWorkout.tsx index 5359dbe..a392222 100644 --- a/EditWorkout.tsx +++ b/EditWorkout.tsx @@ -89,7 +89,7 @@ export default function EditWorkout() { const changeImage = useCallback(async () => { const {fileCopyUri} = await DocumentPicker.pickSingle({ - type: 'image/*', + type: DocumentPicker.types.images, copyTo: 'documentDirectory', }) if (fileCopyUri) setUri(fileCopyUri)