Skip to content

Commit 7f46069

Browse files
committed
iOS
1 parent fc40fa1 commit 7f46069

File tree

8 files changed

+88
-384
lines changed

8 files changed

+88
-384
lines changed

index.js

100755100644
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ var {
77
DeviceEventEmitter
88
} = ReactNative;
99

10-
const EleRNLocation = NativeModules.EleRNLocation;
10+
const RNGeolocation = NativeModules.RNGeolocation;
1111
const onLocationChanged = 'onLocationChangedEvent';
1212

1313
module.exports = {
1414
startLocation: function (options) {
15-
EleRNLocation.startLocation(options);
15+
RNGeolocation.startLocation(options);
1616
},
1717
stopLocation: function () {
18-
EleRNLocation.stopLocation();
18+
RNGeolocation.stopLocation();
1919
},
2020
destroyLocation: function () {
21-
EleRNLocation.destroyLocation();
21+
RNGeolocation.destroyLocation();
2222
},
2323
addEventListener: function (handler) {
2424
const listener = DeviceEventEmitter.addListener(
@@ -28,6 +28,6 @@ module.exports = {
2828
return listener;
2929
},
3030
getLocation: function (options) {
31-
return EleRNLocation.getLocation(options).then(data => data);
31+
return RNGeolocation.getLocation(options).then(data => data);
3232
}
3333
};

ios/ELMRNLocation/ELMRNLocation.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

ios/ELMRNLocation/ELMRNLocation.m

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)