From 59c3e33f637d11e33204e8a912e98459ffad7fab Mon Sep 17 00:00:00 2001 From: Paco Estevez Garcia Date: Thu, 14 Dec 2017 08:12:21 -0800 Subject: [PATCH] Fix isNuclideDebuggingAvailable on iOS Reviewed By: bnham Differential Revision: D6567435 fbshipit-source-id: e8c4d8a3e02fe767f5a6871db61b21faf181cc43 --- React/Modules/RCTDevSettings.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/React/Modules/RCTDevSettings.mm b/React/Modules/RCTDevSettings.mm index 7ec3f6b9f..ea75e892d 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