From 3930a99cf7d348f2680a77556ae00bcb35d0a1b8 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 21 Nov 2022 18:52:56 +1300 Subject: [PATCH] Use document picker types for set form image This works on both ios and android --- SetForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SetForm.tsx b/SetForm.tsx index 507303d..81135eb 100644 --- a/SetForm.tsx +++ b/SetForm.tsx @@ -74,7 +74,7 @@ export default function SetForm({ const changeImage = useCallback(async () => { const {fileCopyUri} = await DocumentPicker.pickSingle({ - type: 'image/*', + type: DocumentPicker.types.images, copyTo: 'documentDirectory', }) if (fileCopyUri) setNewImage(fileCopyUri)