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
2019-01-11 18:42:46 -08:00
committed by Facebook Github Bot
parent cb14b06309
commit adc1a95a3b
3 changed files with 28 additions and 3 deletions

View File

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