diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index f7ac0fe19bb..1ad3d58b75d 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -626,6 +626,15 @@ static id _latestJSExecutor; - (void)bindKeys { #if TARGET_IPHONE_SIMULATOR + // Workaround around the first cmd+r not working: http://openradar.appspot.com/19613391 + // You can register just the cmd key and do nothing. This will trigger the bug and cmd+r + // will work like a charm! + [[RCTKeyCommands sharedInstance] registerKeyCommandWithInput:@"" + modifierFlags:UIKeyModifierCommand + action:^(UIKeyCommand *command) { + // Do nothing + }]; + [[RCTKeyCommands sharedInstance] registerKeyCommandWithInput:@"r" modifierFlags:UIKeyModifierCommand action:^(UIKeyCommand *command) {