Make RCTSamplingProfilerPackagerMethod not depend on RCTBridge

Reviewed By: javache

Differential Revision: D5245899

fbshipit-source-id: a99de4cbf0ddd9c8ee98cbbf438f8930a57e917c
This commit is contained in:
Alex Dvornikov
2017-06-15 11:52:08 -07:00
committed by Facebook Github Bot
parent d27ff20588
commit c143313a20
9 changed files with 37 additions and 35 deletions

View File

@@ -12,9 +12,9 @@
#import <objc/runtime.h>
#import "RCTBridge+JavaScriptCore.h"
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "RCTJSEnvironment.h"
#import "RCTLog.h"
#import "RCTModuleData.h"
#import "RCTPerformanceLogger.h"

View File

@@ -11,16 +11,19 @@
#import <React/RCTBridge.h>
@interface RCTBridge (JavaScriptCore)
@protocol RCTJSEnvironment <NSObject>
/**
* The JSContext used by the bridge.
*/
@property (nonatomic, readonly, strong) JSContext *jsContext;
/**
* The raw JSGlobalContextRef used by the bridge.
*/
@property (nonatomic, readonly, assign) JSGlobalContextRef jsContextRef;
@end
@interface RCTBridge (RCTJSEnvironment) <RCTJSEnvironment>
@end