title: TypeError: undefined is not an object (evaluating 'navigator.geolocation.requestAuthorization')
body: <p>I am attempting to call: </p>
  
  <pre><code>`navigator.geolocation.requestAuthorization();`
  </code></pre>
  
  <p>to request geolocation permission.</p>
  
  <p>But, this is resulting in error when running in iOS simulator</p>
  
  <p>This was working at one point, but stopped. I attempted to delete and create a new project. I also tried to uninstall/reinstall node and react-native-cli.</p>
  
  <pre><code>import React, {Fragment, Component} from 'react';
  import {
    SafeAreaView,
    StyleSheet,
    ScrollView,
    View,
    Text,
    StatusBar,
  } from 'react-native';
  
  import {
    Header,
    LearnMoreLinks,
    Colors,
    DebugInstructions,
    ReloadInstructions,
  } from 'react-native/Libraries/NewAppScreen';
  
  export default class App extends Component {
  
      constructor(props)
      {
          super(props);
  
          navigator.geolocation.requestAuthorization();
      }
  
      render() {
  
          return (
  
                  &lt;View style={styles.MainContainer}&gt;
                  &lt;SafeAreaView style={{flex: 1, backgroundColor: '#fff'}}&gt;
                  &lt;Text style={styles.sectionTitle}&gt;Hello World!&lt;/Text&gt;
                  &lt;/SafeAreaView&gt;
                  &lt;/View&gt;
  
                  );
      }
  }
  
  const styles = StyleSheet.create({
    MainContainer :{
       justifyContent: 'center',
       flex:1,
       margin: 5,
       marginTop: (Platform.OS === 'ios') ? 20 : 0,
    },
    sectionTitle: {
      fontSize: 24,
      fontWeight: '600',
      color: Colors.black,
    },
  });
  </code></pre>
  
  <p>I am getting this error: </p>
  
  <pre><code>[error][tid:com.facebook.react.JavaScript] TypeError: undefined is not an object (evaluating 'navigator.geolocation.requestAuthorization')
  
  This error is located at:
      in App (at renderApplication.js:40)
      in RCTView (at View.js:35)
      in View (at AppContainer.js:98)
      in RCTView (at View.js:35)
      in View (at AppContainer.js:115)
      in AppContainer (at renderApplication.js:39)
  </code></pre>