title: Location request timed out
body: <p>I want to fetch the current location of my device and I'm fetching it inside our office. But when I press the checkin button it always alerts with a message</p>
  
  <pre><code>findCoordinates = () =&gt; {
      navigator.geolocation.getCurrentPosition(
          position =&gt; {
              // const location = JSON.stringify(position);
              console.log("LOCATION", position.coords.longitude, position.coords.latitude);
              this.setState({
                  latitude: position.coords.latitude,
                  longitude: position.coords.longitude,
              });
              this.props.onCheckin(this.state.latitude, this.state.longitude, this.props.employee_id);
          },
          error =&gt; Alert.alert(error.message),
          // { enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 }
          { enableHighAccuracy: true, timeout: 5000, maximumAge: 10000 }
      );
  
  };
  </code></pre>