Clean up FabricUIManagerViewHierarchyTest

Reviewed By: mdvacca

Differential Revision: D7165823

fbshipit-source-id: e6d2a83bf9e089c67d69de6581d177bdf0d2ec4e
This commit is contained in:
Andrew Chen (Eng) 2018-03-06 16:04:43 -08:00 committed by Facebook Github Bot
parent e7b8341024
commit 6fc416313c
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableNativeMap;
import com.facebook.react.bridge.UIManager;
import com.facebook.react.modules.i18nmanager.I18nUtil;
import com.facebook.react.uimanager.DisplayMetricsHolder;
import com.facebook.react.uimanager.NativeViewHierarchyManager;
import com.facebook.react.uimanager.ReactRootViewTagGenerator;
import com.facebook.react.uimanager.ReactShadowNode;
@ -46,6 +47,7 @@ public class FabricUIManager implements UIManager {
public FabricUIManager(ReactApplicationContext reactContext,
ViewManagerRegistry viewManagerRegistry) {
DisplayMetricsHolder.initDisplayMetricsIfNotInitialized(reactContext);
mReactApplicationContext = reactContext;
mViewManagerRegistry = viewManagerRegistry;
mUIViewOperationQueue = new UIViewOperationQueue(reactContext, new NativeViewHierarchyManager(viewManagerRegistry), 0);