Skip to content

Commit e03429c

Browse files
rbornDan Tamas
andauthored
Fix code errors breaking the build (#82)
Co-authored-by: Dan Tamas <hi@dan-tamas.me>
1 parent 488eff1 commit e03429c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNCPushNotificationIOS.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ + (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
176176
{
177177
NSMutableString *hexString = [NSMutableString string];
178178
NSUInteger deviceTokenLength = deviceToken.length;
179-
const unsigned char *bytes = reinterpret_cast<const unsigned char *>(deviceToken.bytes);
179+
const unsigned char *bytes = deviceToken.bytes;
180180
for (NSUInteger i = 0; i < deviceTokenLength; i++) {
181181
[hexString appendFormat:@"%02x", bytes[i]];
182182
}
@@ -349,7 +349,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
349349
static inline NSDictionary *RCTSettingsDictForUNNotificationSettings(BOOL alert, BOOL badge, BOOL sound) {
350350
return @{@"alert": @(alert), @"badge": @(badge), @"sound": @(sound)};
351351
}
352-
}
352+
353353

354354
RCT_EXPORT_METHOD(presentLocalNotification:(UILocalNotification *)notification)
355355
{

0 commit comments

Comments
 (0)