title: React Native: How to check if geolocation permission has been granted
body: <p>I know I can request geolocation permission on iOS with React Native as such:</p>
  
  <pre><code>await navigator.geolocation.requestAuthorization()
  </code></pre>
  
  <p>However, how do I know if user has granted the permission or not? The function above returns nothing.</p>
  
  <p>I would like to avoid using a third party library just to do this as in this answer:
  <a href="https://stackoverflow.com/questions/38371987/determining-if-geolocation-enabled-with-react-native">Determining if geolocation enabled with react native</a></p>
  
  <p>The most popular Permissions 3rd party library hasn't been updated in 10 months and has no support for latest versions of React Native.</p>