diff --git a/React/Base/RCTKeyCommands.m b/React/Base/RCTKeyCommands.m index 83385f82439f84..1ceaf6ec0dceb1 100644 --- a/React/Base/RCTKeyCommands.m +++ b/React/Base/RCTKeyCommands.m @@ -128,7 +128,7 @@ - (void)handleKeyUIEventSwizzle:(UIEvent *)event isKeyDown = [event _isKeyDown]; } - BOOL interactionEnabled = !UIApplication.sharedApplication.isIgnoringInteractionEvents; + BOOL interactionEnabled = !RCTSharedApplication().isIgnoringInteractionEvents; BOOL hasFirstResponder = NO; if (isKeyDown && modifiedInput.length > 0 && interactionEnabled) { UIResponder *firstResponder = nil;