diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/jsi/jni/Binding.cpp b/ReactAndroid/src/main/java/com/facebook/react/fabric/jsi/jni/Binding.cpp index 5e29c0cd4af..70e5e9fd9fd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/jsi/jni/Binding.cpp +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/jsi/jni/Binding.cpp @@ -468,9 +468,7 @@ void Binding::schedulerDidRequestPreliminaryViewAllocation( jni::findClassStatic(UIManagerJavaDescriptor) ->getMethod("preallocateView"); - // TODO: T31905686 Experiment to check what is the impact on TTI of pre loading of Images during - // pre-allocation of views - if (shadowView.componentName == "Image") { + if (shadowView.props->rawProps.isNull()) { local_ref readableMap = castReadableMap(ReadableNativeMap::newObjectCxxArgs(shadowView.props->rawProps)); preallocateView( diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem.java index e07ceab9810..8ab88839619 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem.java @@ -26,7 +26,6 @@ public class DispatchCommandMountItem implements MountItem { @Override public void execute(MountingManager mountingManager) { - UiThreadUtil.assertOnUiThread(); mountingManager.receiveCommand(mReactTag, mCommandId, mCommandArgs); } diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java index 6ca1d21db15..237b95effe3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.react.fabric.mounting.mountitems; @@ -10,9 +10,7 @@ import com.facebook.react.bridge.ReadableMap; import com.facebook.react.fabric.mounting.MountingManager; import com.facebook.react.uimanager.ThemedReactContext; -/** - * {@link MountItem} that is used to pre-allocate views for JS components. - */ +/** {@link MountItem} that is used to pre-allocate views for JS components. */ public class PreAllocateViewMountItem implements MountItem { private final String mComponent; @@ -21,7 +19,8 @@ public class PreAllocateViewMountItem implements MountItem { private final ReadableMap mProps; private final ThemedReactContext mContext; - public PreAllocateViewMountItem(ThemedReactContext context, int rootTag, int reactTag, String component, ReadableMap props){ + public PreAllocateViewMountItem( + ThemedReactContext context, int rootTag, int reactTag, String component, ReadableMap props) { mContext = context; mComponent = component; mRootTag = rootTag;