title: How to get GPS location in react-native-maps
body: <p>My react-native app is using <a href="https://github.com/airbnb/react-native-maps" rel="nofollow noreferrer"><code>react-native-maps</code></a> to display a Google Maps and a marker. A styled <code>View</code> is used as the location marker that has a fixed position on the device screen.</p>
  
  <p><strong>Question:</strong> How can we get the GPS coordinates (lat/lng) of the marker, at say the bottom left corner of the <code>&lt;View style={styles.marker}&gt;</code> component?</p>
  
  <pre><code>&lt;MapView
      ref='map'
      initialRegion={{
          latitude: LATITUDE,
          longitude: LONGITUDE,
          latitudeDelta: LATITUDE_DELTA,
          longitudeDelta: LONGITUDE_DELTA,
      }}
      showsUserLocation={true}
  &gt;&lt;/MapView&gt;
  
  &lt;View style={styles.markerContainer}&gt;
      &lt;View style={styles.marker}&gt;
      &lt;/View&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p><strong>styles</strong></p>
  
  <pre><code>var deviceHeight = Dimensions.get('window').height;
  StyleSheet.create({
      markerContainer: {
          bottom: deviceHeight/2.2,
          position: 'absolute',
          left: 0,
          right: 0,
      },
  })
  </code></pre>