I use Expo SDK47(the latest). I can choose a photo but it returns me an object with undefined properties (I added the result below). It works on ios but not Android devices ( Samsung and Huawei). My code is like that. I followed the documentation.
async function handleImage(){
try {
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.Images,
quality: 1,
});
if (!result.cancelled) {
setImage(result.uri);
}
console.log(result)
} catch (error) {
console.log(error)
}
}
Object {
"assetId": undefined,
"base64": undefined,
"cancelled": undefined,
"exif": undefined,
"height": undefined,
"type": undefined,
"uri": undefined,
"width": undefined,
}
I tried to choose different libaries but it doesnt change. I tried to downgrade my packages. I doesnt work
I'm facing the same problem and I downgrade the version to 13.3.1 then it worked. No config needed for expo(not sure about CLI).