title: Determining if geolocation enabled with react native
body: <p>Building an app with RN I use the following to receive user's location :</p>
  
  <pre><code> navigator.geolocation.getCurrentPosition(
    (position) =&gt; {
     //do stuff with location
    },
    (error) =&gt; {
      //error or locaiton not allowed
    },
    {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000}
  );
  </code></pre>
  
  <p>Which immediately invokes the inquiry for user to accept geolocation permissions. What I'm trying to achieve now is to have an explicit screen before prompting user to click on a button to accept those permissions. In order to get there, I need some way to check if he has accepted those permissions before or not. Caching it in storage would be a bad solution - it might go out of sync if user changes permissions in settings.</p>
  
  <p>How can I check if user has accepted geolocation permissions without triggering the permission alert?</p>