title: using react native how to get current locations city name?
body: <p>Hi im using react native and I want to get my current locations city name can anyone help me with this issue?? I dont get the response at all. I have already tried...</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code> componentDidMount(){
          navigator.geolocation.getCurrentPosition(
            (position) =&gt; {
              try {
                  Geocoder.geocodePosition({ position.coords.latitude, position.coords.longitude }.then(res =&gt;
                    console.log(res);
               } catch(err) {
                 console.log(err);
               }
             },
             (error) =&gt; this.setState({ error: error.message }),
             { enableHighAccuracy: false, timeout: 200000, maximumAge: 1000 },
           );
    }
  </code></pre>