Skip to content

Commit

Permalink
append the _ in the "RCT_EXPORT_METHOD" methods
Browse files Browse the repository at this point in the history
  • Loading branch information
neuberoliveira committed Sep 6, 2017
1 parent c302c16 commit fb1dfff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ios/DPMGpsState.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ -(id)init {
RCT_EXPORT_MODULE(GPSState);

#pragma mark Exported Methods
RCT_EXPORT_METHOD(startListen){
RCT_EXPORT_METHOD(_startListen){
if(!self.manager.delegate){
self.manager.delegate = self;
}
}

RCT_EXPORT_METHOD(stopListen){
RCT_EXPORT_METHOD(_stopListen){
self.manager.delegate = nil;
}

RCT_EXPORT_METHOD(getStatus:(RCTResponseSenderBlock)callback){
RCT_EXPORT_METHOD(_getStatus:(RCTResponseSenderBlock)callback){
callback(@[ [self getLocationStatus] ]);
}

RCT_REMAP_METHOD(getStatus, getStatusWithResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
RCT_REMAP_METHOD(_getStatus, getStatusWithResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
NSNumber *status = [self getLocationStatus];
if(status >= 0){
resolve(status);
Expand All @@ -77,7 +77,7 @@ -(id)init {
}
}

RCT_EXPORT_METHOD(openSettings){
RCT_EXPORT_METHOD(_openSettings){
UIApplication *application = [UIApplication sharedApplication];
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];

Expand All @@ -88,7 +88,7 @@ -(id)init {
}
}

RCT_EXPORT_METHOD(requestAuthorization:(nonnull NSNumber*)authType){
RCT_EXPORT_METHOD(_requestAuthorization:(nonnull NSNumber*)authType){
int type = [authType intValue];
int authInUse = [[self.constants objectForKey:@"AUTHORIZED_WHENINUSE"] intValue];
int authAwalys = [[self.constants objectForKey:@"AUTHORIZED_ALWAYS"] intValue];
Expand Down

0 comments on commit fb1dfff

Please sign in to comment.