mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
move page registration logic in to jsinspector
Reviewed By: pakoito Differential Revision: D6531199 fbshipit-source-id: ed1ae9e2f0c19e7656cd022e438693798320e55a
This commit is contained in:
committed by
Facebook Github Bot
parent
48019a0c2a
commit
bef7967f9a
@@ -49,17 +49,9 @@ private:
|
||||
- (instancetype)initWithConnection:(std::unique_ptr<ILocalConnection>)connection;
|
||||
@end
|
||||
|
||||
// Only safe to call with Custom JSC. Custom JSC check must occur earlier
|
||||
// in the stack
|
||||
static IInspector *getInstance()
|
||||
{
|
||||
static dispatch_once_t onceToken;
|
||||
static IInspector *s_inspector;
|
||||
dispatch_once(&onceToken, ^{
|
||||
s_inspector = customJSCWrapper()->JSInspectorGetInstance();
|
||||
});
|
||||
|
||||
return s_inspector;
|
||||
return &facebook::react::getInspectorInstance();
|
||||
}
|
||||
|
||||
@implementation RCTInspector
|
||||
|
||||
Reference in New Issue
Block a user