Usually, it is easier for me to do this with fetch
, but this package does not use fetch
.
I read other questions similar to mine and here is my attempt in trying to do it:
SelectPhoto = () =>{
ImagePicker.openPicker({
}).then((imgResponse) => {
console.log(imgResponse.path); <-- Trying to access the path
});
}
I keep getting undefined
and here are my console log results:
0:{size: 745660, mime: "image/jpeg", height: 2960, width: 1440, path: "file:///storage/emulated/0/DCIM/Screenshots/Screenshot_20180617-173313.jpg"} length:1
Can anyone help me out with this? Thank you so much!