Use document picker images type
This hopefully works on ios as well.
This commit is contained in:
parent
ef637d3e56
commit
e03101f673
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user