diff --git a/React/CoreModules/RCTDevMenu.mm b/React/CoreModules/RCTDevMenu.mm index 2166d5034fac32..6ffd2ca9fc0dad 100644 --- a/React/CoreModules/RCTDevMenu.mm +++ b/React/CoreModules/RCTDevMenu.mm @@ -168,7 +168,13 @@ - (void)invalidate - (void)showOnShake { if ([((RCTDevSettings *)[_moduleRegistry moduleForName:"DevSettings"]) isShakeToShowDevMenuEnabled]) { - [self show]; + for (UIWindow *window in [RCTSharedApplication() windows]) { + NSString *recursiveDescription = [window valueForKey:@"recursiveDescription"]; + if ([recursiveDescription containsString:@"RCTView"]) { + [self show]; + return; + } + } } }