mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix RCTProfileHookModules instantiating all modules
Reviewed By: tadeuzagallo Differential Revision: D3235048 fb-gh-sync-id: bdcd72fb241c5136e884c1705e027f178939970b fbshipit-source-id: bdcd72fb241c5136e884c1705e027f178939970b
This commit is contained in:
committed by
Facebook Github Bot 3
parent
aebf4db45a
commit
a9a90aa2f0
@@ -98,6 +98,11 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init);
|
||||
"bridge.", _moduleClass);
|
||||
}
|
||||
}
|
||||
|
||||
if (RCTProfileIsProfiling()) {
|
||||
RCTProfileHookInstance(_instance);
|
||||
}
|
||||
|
||||
// Bridge must be set before methodQueue is set up, as methodQueue
|
||||
// initialization requires it (View Managers get their queue by calling
|
||||
// self.bridge.uiManager.methodQueue)
|
||||
|
||||
Reference in New Issue
Block a user