Use document picker images type

This hopefully works on ios as well.
This commit is contained in:
Brandon Presley 2022-11-21 18:44:12 +13:00
parent ef637d3e56
commit e03101f673
1 changed files with 1 additions and 1 deletions

View File

@ -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)