marlove / react-native-geocoding

MIT License
208 stars 54 forks source link

Geocoding error " Attempt to invoke interface method 'java.lang.string.com.facebook.react.bridge.ReadableMap.getString(java.lang.String)' on a null object reference #39

Open vijay14887 opened 3 years ago

vijay14887 commented 3 years ago

Geocoder.from(41.89, 12.49) .then(json => { console.log("json",json); var addressComponent = json.results[0].address_components[0]; console.log("addressComponent",addressComponent); }) .catch(error => console.warn(error));

when I run the above code getting an error as " Attempt to invoke interface method 'java.lang.string.com.facebook.react.bridge.ReadableMap.getString(java.lang.String)' on a null object reference". Could you please help with this issue? Thanks.

vijay14887 commented 3 years ago

828cb437-b920-4859-ba5a-e1faa5dee624

vijay14887 commented 3 years ago

@marlove Any help is greatly appreciated!!! API key related to this Project and not having a billing method for this API key will cause this issue?