Skip to content

Commit

Permalink
Merge pull request #11 from bruz/allows-background-location-updates
Browse files Browse the repository at this point in the history
Expose a method to set allowsBackgroundLocationUpdates
  • Loading branch information
timfpark committed Nov 25, 2015
2 parents 0eb9806 + 7c490ce commit d461e04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RNLocation.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ - (instancetype)init
self.locationManager.distanceFilter = distance;
}

RCT_EXPORT_METHOD(setAllowsBackgroundLocationUpdates:(BOOL) enabled)
{
self.locationManager.allowsBackgroundLocationUpdates = enabled;
}

RCT_EXPORT_METHOD(startMonitoringSignificantLocationChanges)
{
NSLog(@"react-native-location: startMonitoringSignificantLocationChanges");
Expand Down

0 comments on commit d461e04

Please sign in to comment.