enter image description herenot sure why I cant access the data in the console. no problem accessing using res.data but as soon as I type res.data.fullName or any of the properties...it says undefined using react native.
enter image description herenot sure why I cant access the data in the console. no problem accessing using res.data but as soon as I type res.data.fullName or any of the properties...it says undefined using react native.
Looks like your call returns an array of objects, you should be able to access them with:
.then(res => {
for (const data of res.data) {
console.log(data.fullName);
}
})