Fix isNuclideDebuggingAvailable on iOS
Reviewed By: bnham Differential Revision: D6567435 fbshipit-source-id: e8c4d8a3e02fe767f5a6871db61b21faf181cc43
This commit is contained in:
parent
ee8a7b4827
commit
59c3e33f63
|
@ -42,6 +42,7 @@ static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";
|
||||||
|
|
||||||
#if RCT_ENABLE_INSPECTOR
|
#if RCT_ENABLE_INSPECTOR
|
||||||
#import "RCTInspectorDevServerHelper.h"
|
#import "RCTInspectorDevServerHelper.h"
|
||||||
|
#import <jschelpers/JSCWrapper.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if RCT_DEV
|
#if RCT_DEV
|
||||||
|
@ -255,7 +256,7 @@ static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientRespo
|
||||||
- (BOOL)isNuclideDebuggingAvailable
|
- (BOOL)isNuclideDebuggingAvailable
|
||||||
{
|
{
|
||||||
#if RCT_ENABLE_INSPECTOR
|
#if RCT_ENABLE_INSPECTOR
|
||||||
return true;
|
return facebook::react::isCustomJSCPtr(_bridge.jsContextRef);
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif //RCT_ENABLE_INSPECTOR
|
#endif //RCT_ENABLE_INSPECTOR
|
||||||
|
|
Loading…
Reference in New Issue