|
|
@@ -7,7 +7,7 @@ import { StyleSheet, View } from 'react-native';
|
|
|
import { check, openSettings, PERMISSIONS, request, RESULTS } from 'react-native-permissions';
|
|
|
import Button from '../../../components/Button';
|
|
|
import TextView from '../../../components/TextView';
|
|
|
-import LocationEnabler from 'react-native-location-enabler';
|
|
|
+//import LocationEnabler from 'react-native-location-enabler';
|
|
|
|
|
|
//global.hasPermission = false;
|
|
|
|
|
|
@@ -15,7 +15,7 @@ class LocationListener {
|
|
|
constructor() {
|
|
|
this.listener = undefined;
|
|
|
this.config = {
|
|
|
- priority: LocationEnabler.PRIORITIES.HIGH_ACCURACY, // default BALANCED_POWER_ACCURACY
|
|
|
+ priority: "",//LocationEnabler.PRIORITIES.HIGH_ACCURACY, // default BALANCED_POWER_ACCURACY
|
|
|
alwaysShow: false, // default false
|
|
|
needBle: false // default false
|
|
|
};
|
|
|
@@ -23,7 +23,7 @@ class LocationListener {
|
|
|
}
|
|
|
|
|
|
addListener() {
|
|
|
- this.listener = LocationEnabler?.addListener(({ locationEnabled }) => {
|
|
|
+ /*this.listener = LocationEnabler?.addListener(({ locationEnabled }) => {
|
|
|
if (!locationEnabled) {
|
|
|
console.log("status: " + this.status + "," + locationEnabled);
|
|
|
if (this.status != locationEnabled) {
|
|
|
@@ -31,7 +31,7 @@ class LocationListener {
|
|
|
LocationEnabler.requestResolutionSettings(this.config);
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
+ })*/
|
|
|
}
|
|
|
|
|
|
removeListener() {
|