I'm trying to set the variables lat and lng to the coordinates returned by the geocoder. I think that lat and lng are accessible from inside the geocoder code where it says Geocode
Solution 1:
Geocoder.getFromLocation() takes time to occur.
You need to wait until it finishes
Post a Comment for "React Native Setting/accessing A Variable Inside A Function"