diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm index 1578b00fa31025..a23184bf0a3b7d 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm @@ -244,7 +244,7 @@ - (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask NSNumber *index = mountInstruction[kRCTLegacyInteropChildIndexKey]; RCTUIView *childView = mountInstruction[kRCTLegacyInteropChildComponentKey]; // [macOS] if ([childView isKindOfClass:[RCTLegacyViewManagerInteropComponentView class]]) { - RCTUIView *target = ((RCTLegacyViewManagerInteropComponentView *)childView).contentView; // [macOS] + RCTPlatformView *target = ((RCTLegacyViewManagerInteropComponentView *)childView).contentView; // [macOS] [_adapter.paperView insertReactSubview:target atIndex:index.integerValue]; } else { [_adapter.paperView insertReactSubview:childView atIndex:index.integerValue];