I'm dealing with a react-native project. I retrieved the current location of the user and I have this object returned:
"coords": Object {
"accuracy": 104.0999984741211,
"altitude": 0,
"heading": 0,
"latitude": 34.4030088,
"longitude": 35.8367525,
"speed": 0,
},
"mocked": false,
"timestamp": 1586419702795,
}
I tried this:
console.log(this.state.location.coords.latitude);
but it give me: ** undefined is not an object (evaluating 'this.state.location.coords.latitude') **