mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fix isNuclideDebuggingAvailable on iOS
Reviewed By: bnham Differential Revision: D6567435 fbshipit-source-id: e8c4d8a3e02fe767f5a6871db61b21faf181cc43
This commit is contained in:
committed by
Facebook Github Bot
parent
ee8a7b4827
commit
59c3e33f63
@@ -42,6 +42,7 @@ static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";
|
||||
|
||||
#if RCT_ENABLE_INSPECTOR
|
||||
#import "RCTInspectorDevServerHelper.h"
|
||||
#import <jschelpers/JSCWrapper.h>
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user