diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java index b92269c97..f78ce5987 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java @@ -191,6 +191,10 @@ public class FabricUIManager implements UIManager, LifecycleEventListener { @DoNotStrip private void preallocateView(final int rootTag, final String componentName) { + if (UiThreadUtil.isOnUiThread()) { + // There is no reason to allocate views ahead of time on the main thread. + return; + } synchronized (mPreMountItemsLock) { ThemedReactContext context = Assertions.assertNotNull(mReactContextForRootTag.get(rootTag));