Closed fragilehm closed 2 months ago
The .onLocation
event takes a 2nd callback failure
callback. If you don't provide the 2nd failure
callback, then LocationError
is sent to the 1st callback.
You can easily see this by console.log(location)
to see that you're receiving a LocationError
.
See the API docs for .onLocation
Provide a 2nd arg failure
callback to your .onLocation(success, failure)
.
You would have been seeing a ⚠️ in the logs about that too.
Your Environment
react-native -v
):Expected Behavior
When receiving a location update, the coordinates should be defined.
Actual Behavior
When receiving a location update, the location coordinates are undefined.
Steps to Reproduce