We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb9806 commit 7c490ceCopy full SHA for 7c490ce
RNLocation.m
@@ -65,6 +65,11 @@ - (instancetype)init
65
self.locationManager.distanceFilter = distance;
66
}
67
68
+RCT_EXPORT_METHOD(setAllowsBackgroundLocationUpdates:(BOOL) enabled)
69
+{
70
+ self.locationManager.allowsBackgroundLocationUpdates = enabled;
71
+}
72
+
73
RCT_EXPORT_METHOD(startMonitoringSignificantLocationChanges)
74
{
75
NSLog(@"react-native-location: startMonitoringSignificantLocationChanges");
0 commit comments