mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Make RCTSamplingProfilerPackagerMethod not depend on RCTBridge
Reviewed By: javache Differential Revision: D5245899 fbshipit-source-id: a99de4cbf0ddd9c8ee98cbbf438f8930a57e917c
This commit is contained in:
committed by
Facebook Github Bot
parent
d27ff20588
commit
c143313a20
@@ -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"
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user