Skip to content

Commit ffa493f

Browse files
authored
fix iOS build breaking (#135)
Fixes `Incompatible operand types ('NSUInteger' (aka 'unsigned long') and 'id')` on repeat interval.
1 parent 57f93cf commit ffa493f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNCPushNotificationIOS.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ @implementation RNCPushNotificationIOS
9696
formattedLocalNotification[@"alertBody"] = RCTNullIfNil(notification.alertBody);
9797
formattedLocalNotification[@"applicationIconBadgeNumber"] = @(notification.applicationIconBadgeNumber);
9898
formattedLocalNotification[@"category"] = RCTNullIfNil(notification.category);
99-
formattedLocalNotification[@"repeatInterval"] = RCTNullIfNil(notification.repeatInterval);
99+
formattedLocalNotification[@"repeatInterval"] = @(notification.repeatInterval);
100100
formattedLocalNotification[@"soundName"] = RCTNullIfNil(notification.soundName);
101101
formattedLocalNotification[@"userInfo"] = RCTNullIfNil(RCTJSONClean(notification.userInfo));
102102
formattedLocalNotification[@"remote"] = @NO;

0 commit comments

Comments
 (0)