diff --git a/packages/react-native/React/Views/RCTView.m b/packages/react-native/React/Views/RCTView.m index 0a4efc1fff0a..77ddff712d54 100644 --- a/packages/react-native/React/Views/RCTView.m +++ b/packages/react-native/React/Views/RCTView.m @@ -1768,7 +1768,7 @@ - (BOOL)handleKeyboardEvent:(NSEvent *)event { static const char kRCTViewKeyboardEventEmittedKey = 0; NSNumber *emitted = objc_getAssociatedObject(event, &kRCTViewKeyboardEventEmittedKey); BOOL alreadyEmitted = [emitted boolValue]; - if (!alreadyEmitted) { + if (keyboardEvent && !alreadyEmitted) { [_eventDispatcher sendEvent:keyboardEvent]; objc_setAssociatedObject(event, &kRCTViewKeyboardEventEmittedKey, @(YES), OBJC_ASSOCIATION_RETAIN_NONATOMIC); }