Skip to content

Commit

Permalink
[expo-notifications] Fix wrong placement of const
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed Jan 20, 2020
1 parent ad86fa1 commit 0df97b6
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -5,7 +5,7 @@

#import <UMCore/UMEventEmitterService.h>

static const NSString *onDevicePushTokenEventName = @"onDevicePushToken";
static NSString * const onDevicePushTokenEventName = @"onDevicePushToken";

@interface EXPushTokenModule ()

Expand Down Expand Up @@ -57,7 +57,7 @@ - (void)setModuleRegistry:(UMModuleRegistry *)moduleRegistry

- (NSArray<NSString *> *)supportedEvents
{
return @[(NSString *)onDevicePushTokenEventName];
return @[onDevicePushTokenEventName];
}

- (void)startObserving
Expand Down Expand Up @@ -102,7 +102,7 @@ - (void)onDidRegisterWithDeviceToken:(NSData *)devicePushToken
}

if (_isBeingObserved) {
[_eventEmitter sendEventWithName:(NSString *)onDevicePushTokenEventName
[_eventEmitter sendEventWithName:onDevicePushTokenEventName
body:@{ @"devicePushToken": stringToken }];
}
}
Expand Down

0 comments on commit 0df97b6

Please sign in to comment.