Can't configure push notifications on iOS React Native

Hey everyone,

Trying to follow this guide.

Pasted this code in appDelegate.m
- (void)applicationDidBecomeActive:(UIApplication *)application {
[application registerUserNotificationSettings:
[UNNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)
categories:nil]];
[application registerForRemoteNotifications];
}

Getting this error: No known class method for selector ‘settingsForTypes:categories:’

Sorry I’m a complete noob in Objective-C

Thanks for all the helpers!