From 288270250407a9f71da4b00876a77b12307757c5 Mon Sep 17 00:00:00 2001 From: AnhDevit Date: Thu, 29 Oct 2020 17:06:48 +0700 Subject: [PATCH] fix registerKeyCommandWithInput --- ios/KeyCommands/RCTKeyCommandsManager.m | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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]; + }]; }); }