react-native/Libraries/Geolocation
realaboo 49b2805da2 Geolocation Accuracy and Cached Location Bug
Summary:There are two issues:

1. When calling startObserving or getCurrentPosition for the first time, _locationManager is not initialized and the accuracy value set in options is lost.

2. When using the cached location _lastLocationEvent, current timestamp retrieved by CFAbsoluteTimeGetCurrent() is from 2001, but the timestamp of the location is from 1970. In addition, the comparison between _lastLocationEvent[@"coords"][@"accuracy"] and options.accuracy is incorrect. Less value indicates more accurate location.
Closes https://github.com/facebook/react-native/pull/6198

Differential Revision: D3023786

Pulled By: nicklockwood

fb-gh-sync-id: 869c0e34252470275bf99cf0e5861747247f1158
shipit-source-id: 869c0e34252470275bf99cf0e5861747247f1158
2016-03-08 05:17:21 -08:00
..
RCTGeolocation.xcodeproj Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Geolocation.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
RCTLocationObserver.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTLocationObserver.m Geolocation Accuracy and Cached Location Bug 2016-03-08 05:17:21 -08:00