diff --git a/ios/RNCPushNotificationIOS.m b/ios/RNCPushNotificationIOS.m index ebbae63bb..be7176186 100644 --- a/ios/RNCPushNotificationIOS.m +++ b/ios/RNCPushNotificationIOS.m @@ -176,7 +176,7 @@ + (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { NSMutableString *hexString = [NSMutableString string]; NSUInteger deviceTokenLength = deviceToken.length; - const unsigned char *bytes = reinterpret_cast(deviceToken.bytes); + const unsigned char *bytes = deviceToken.bytes; for (NSUInteger i = 0; i < deviceTokenLength; i++) { [hexString appendFormat:@"%02x", bytes[i]]; } @@ -349,7 +349,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification static inline NSDictionary *RCTSettingsDictForUNNotificationSettings(BOOL alert, BOOL badge, BOOL sound) { return @{@"alert": @(alert), @"badge": @(badge), @"sound": @(sound)}; } -} + RCT_EXPORT_METHOD(presentLocalNotification:(UILocalNotification *)notification) {