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 2f36cef5ef7cb8..1efadeea295582 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java @@ -187,7 +187,7 @@ private void preallocateView( int rootTag, int reactTag, final String componentName, - ReadableMap props, + @Nullable ReadableMap props, boolean isLayoutable) { ThemedReactContext context = mReactContextForRootTag.get(rootTag); String component = getComponent(componentName); @@ -453,7 +453,7 @@ public void onHostDestroy() {} @Override public void dispatchCommand( - final int reactTag, final int commandId, final ReadableArray commandArgs) { + final int reactTag, final int commandId, @Nullable final ReadableArray commandArgs) { synchronized (mMountItemsLock) { mMountItems.add(new DispatchCommandMountItem(reactTag, commandId, commandArgs)); } diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java index 475f26b2c864d6..675c43c57caccd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java @@ -174,7 +174,7 @@ public void createViewWithProps( ThemedReactContext themedReactContext, String componentName, int reactTag, - ReadableMap props, + @Nullable ReadableMap props, boolean isLayoutable) { if (mTagToViewState.get(reactTag) != null) { return; @@ -312,7 +312,7 @@ public void preallocateView( ThemedReactContext reactContext, String componentName, int reactTag, - ReadableMap props, + @Nullable ReadableMap props, boolean isLayoutable) { if (mTagToViewState.get(reactTag) != null) { 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 13d70b8c6faf47..ca117d4587776c 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 @@ -9,6 +9,7 @@ import static com.facebook.react.fabric.FabricUIManager.DEBUG; import static com.facebook.react.fabric.FabricUIManager.TAG; +import androidx.annotation.Nullable; import com.facebook.common.logging.FLog; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.fabric.mounting.MountingManager; @@ -20,7 +21,7 @@ public class PreAllocateViewMountItem implements MountItem { private final String mComponent; private final int mRootTag; private final int mReactTag; - private final ReadableMap mProps; + private final @Nullable ReadableMap mProps; private final ThemedReactContext mContext; private final boolean mIsLayoutable; @@ -29,7 +30,7 @@ public PreAllocateViewMountItem( int rootTag, int reactTag, String component, - ReadableMap props, + @Nullable ReadableMap props, boolean isLayoutable) { mContext = context; mComponent = component;