mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
[catalyst|madman] fix location observer
This commit is contained in:
parent
7577f0e0b3
commit
b2bf4b88bf
@ -6,7 +6,7 @@
|
||||
'use strict';
|
||||
|
||||
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||
var RCTLocationObserver = require('NativeModulesDeprecated').RKLocationObserver;
|
||||
var RCTLocationObserver = require('NativeModules').RCTLocationObserver;
|
||||
|
||||
var invariant = require('invariant');
|
||||
var logError = require('logError');
|
||||
@ -34,9 +34,9 @@ var Geolocation = {
|
||||
'Must provide a valid geo_success callback.'
|
||||
);
|
||||
RCTLocationObserver.getCurrentPosition(
|
||||
geo_options || {},
|
||||
geo_success,
|
||||
geo_error || logError,
|
||||
geo_options || {}
|
||||
geo_error || logError
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -180,9 +180,9 @@ static NSDictionary *RCTPositionError(RCTPositionErrorCode code, NSString *msg /
|
||||
});
|
||||
}
|
||||
|
||||
- (void)getCurrentPosition:(RCTResponseSenderBlock)successBlock
|
||||
withErrorCallback:(RCTResponseSenderBlock)errorBlock
|
||||
options:(NSDictionary *)optionsJSON
|
||||
- (void)getCurrentPosition:(NSDictionary *)optionsJSON
|
||||
withSuccessCallback:(RCTResponseSenderBlock)successBlock
|
||||
errorCallback:(RCTResponseSenderBlock)errorBlock
|
||||
{
|
||||
RCT_EXPORT();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user