Reuse ViewManagerRegistry between UIManagerModule and FabricUIManager

Summary: This diff reuses the ViewManager registry between UIManagerModule and Fabric, previously View Managers were being initialized twice (one for each UIManager), increasing Fabric TTI by ~77ms

Reviewed By: shergin

Differential Revision: D13640912

fbshipit-source-id: d7a9591084c66e4a2fc2384b2dae1b7fc5a228d0
This commit is contained in:
David Vacca authored and Facebook Github Bot committed 2019-01-11 18:45:45 -08:00
1 parent cb14b06309
commit adc1a95a3b
3 files changed
+28 -3

No files matched your search

@@ -87,7 +87,7 @@ public class UIImplementation {
minTimeLeftInFrameForNonBatchedOperationMs);
}
private UIImplementation(
UIImplementation(
ReactApplicationContext reactContext,
ViewManagerRegistry viewManagers,
EventDispatcher eventDispatcher,