779f9e2b9c
Summary: Fixes an issue where location request timeout errors always reported "Unable to fetch location within **0s**". Previously we had `@"Unable to fetch location within %zds.", (NSInteger)(timer.timeInterval * 1000.0)` but from the [NSTimer.timeInterval docs](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/#//apple_ref/occ/instp/NSTimer/timeInterval) "If the receiver is a non-repeating timer, returns 0 even if a time interval was set.". Change to use `request.options.timeout` instead, which is a `Double` defaulting to `INFINITY`. Tested on an iOS simulator. Closes https://github.com/facebook/react-native/pull/9888 Differential Revision: D3902788 Pulled By: javache fbshipit-source-id: aef717d6c39f3177cb7056a17adc35c1bfd94132 |
||
---|---|---|
.. | ||
RCTGeolocation.xcodeproj | ||
Geolocation.js | ||
RCTLocationObserver.h | ||
RCTLocationObserver.m |