diff --git a/ios/KeyCommands/RCTKeyCommandsManager.m b/ios/KeyCommands/RCTKeyCommandsManager.m index 1ccc1fb..5e47bcf 100644 --- a/ios/KeyCommands/RCTKeyCommandsManager.m +++ b/ios/KeyCommands/RCTKeyCommandsManager.m @@ -31,13 +31,10 @@ - (void)onKeyCommand:(UIKeyCommand *)keyCommand flags = @0; } dispatch_async(dispatch_get_main_queue(), ^{ - [[RCTKeyCommands sharedInstance] - registerKeyCommand:input - modifierFlags:[flags integerValue] - discoverabilityTitle:discoverabilityTitle - action:^(__unused UIKeyCommand *command) { - [self onKeyCommand:command]; - }]; + [[RCTKeyCommands sharedInstance] + registerKeyCommandWithInput:input modifierFlags:[flags integerValue] action:^(__unused UIKeyCommand *command) { + [self onKeyCommand:command]; + }]; }); }