Use document picker types for set form image
This works on both ios and android
This commit is contained in:
parent
e03101f673
commit
3930a99cf7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user