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:
Pieter De Baets
2016-05-04 06:55:30 -07:00
committed by Facebook Github Bot 3
parent aebf4db45a
commit a9a90aa2f0
6 changed files with 69 additions and 48 deletions
+5
View File
@@ -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)