react-native-android-background-geolocation
Version:
A react-native geolocation module for Android, which can run in the foreground and background even the app is terminated.
27 lines (25 loc) • 603 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:true});exports.Impl=undefined;
require('./type');
var notSupported=function notSupported(){return console.warn('GeolocationService does not support for iOS.');};
var Impl=exports.Impl={
start:function start(option){
notSupported();
},
stop:function stop(){
notSupported();
},
onLocationChanged:function onLocationChanged(listener){
notSupported();
return function(){
notSupported();
};
},
onError:function onError(listener){
notSupported();
return function(){
notSupported();
};
},
removeAllListeners:function removeAllListeners(){
notSupported();
}};