Use document picker types for set form image

This works on both ios and android
This commit is contained in:
Brandon Presley 2022-11-21 18:52:56 +13:00
parent e03101f673
commit 3930a99cf7
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export default function SetForm({
const changeImage = useCallback(async () => { const changeImage = useCallback(async () => {
const {fileCopyUri} = await DocumentPicker.pickSingle({ const {fileCopyUri} = await DocumentPicker.pickSingle({
type: 'image/*', type: DocumentPicker.types.images,
copyTo: 'documentDirectory', copyTo: 'documentDirectory',
}) })
if (fileCopyUri) setNewImage(fileCopyUri) if (fileCopyUri) setNewImage(fileCopyUri)