title: To get Current Location Automatically in Reactnative
body: <p>I have this method to fetch current location by clicking button it will fetch current location . I want to fetch location without clicking that button .</p>
  
  <pre><code>getLocationHandler = () =&gt;{
     navigator.geolocation.getCurrentPosition(pos =&gt;{
  
      const coordsEvent ={ 
        nativeEvent :{
          coordinate : {
            latitude : pos.coords.latitude,
            longitude : pos.coords.longitude
          }
        }
      };
  this.pickLocationHandler(coordsEvent);
  
     },
     err =&gt; {
       console.log(err);
       alert("Fetching the position failed,Please pick one manually")
     })
   }
  </code></pre>