title: react native maps fake & mock location
body: <p>How can I make sure that user will not use the mock location and fake gps while using react native maps? </p>
  
  <p>When the developer mode is enabled on the device, users can still use the mock location do we have way to stop it?</p>
  
  <pre><code>&lt;MapView
   provider={PROVIDER_GOOGLE}
   ref={ map =&gt; { this.map = map }}
  region={this.state.mapRegion}
  //onRegionChangeComplete={region =&gt; this.setState({ region })}
   style={{height: this.state.height}}
   showsUserLocation = {false}
   followUserLocation = {true}
   showsMyLocationButton={false}
   onMapReady={this.onMapReady}
   zoomEnabled = {true}&gt;
   {this.state.geoFenceCoords!=undefined &amp;&amp; this.state.geoFenceCoords.map((coords,i) =&gt; (
              &lt;MapView.Polygon
              key={i}
                  coordinates={coords}
                  strokeColor="rgb(84,181,64)"
                  strokeWidth={2}
                  fillColor="rgba(84,181,64,0.2)" 
                  onPress={() =&gt; this.onPress()}
                  /&gt;
          )
  )}
    {this.state.lastLat!=null &amp;&amp; this.state.lastLong!=null &amp;&amp;   &lt;MapView.Marker
        coordinate={{
          latitude: this.state.lastLat,
          longitude: this.state.lastLong,}}
  
  
      &gt;
  
  
   &lt;View style={{justifyContent:'center', alignItems:'center',}}&gt;
   &lt;View style={styles.calloutViewPin}&gt;
  
       {this.state.lastLat!= null &amp;&amp; this.state.lastLong!=null &amp;&amp; &lt;Text style={styles.textLocPin}&gt;Your current location
      &lt;/Text&gt;}
        &lt;/View&gt;
        &lt;Image source={marker} style={{width: 20, height: 30, paddingTop: 0, marginTop:0}}/&gt;
        &lt;/View&gt;
        &lt;/MapView.Marker&gt;}
   &lt;/MapView&gt;
  </code></pre>