diff --git a/React/Modules/RCTDevSettings.mm b/React/Modules/RCTDevSettings.mm index 7ec3f6b9fce..ea75e892dd9 100644 --- a/React/Modules/RCTDevSettings.mm +++ b/React/Modules/RCTDevSettings.mm @@ -42,6 +42,7 @@ static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu"; #if RCT_ENABLE_INSPECTOR #import "RCTInspectorDevServerHelper.h" +#import #endif #if RCT_DEV @@ -255,7 +256,7 @@ static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientRespo - (BOOL)isNuclideDebuggingAvailable { #if RCT_ENABLE_INSPECTOR - return true; + return facebook::react::isCustomJSCPtr(_bridge.jsContextRef); #else return false; #endif //RCT_ENABLE_INSPECTOR