diff --git a/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js b/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js index 73ef30c8e45..61414d6c26c 100644 --- a/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js +++ b/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js @@ -245,6 +245,11 @@ const UIManagerJSPlatformAPIs = Platform.select({ }, }, ios: { + /** + * TODO(T174674274): Implement lazy loading of legacy view managers in the new architecture. + * + * Leave this unimplemented until we implement lazy loading of legacy modules and view managers in the new architecture. + */ lazilyLoadView: (name: string): Object => { raiseSoftError('lazilyLoadView'); return {}; 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 830d9aef0dd..b29cffd89be 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm @@ -130,6 +130,7 @@ static NSString *const kRCTLegacyInteropChildIndexKey = @"index"; } // Step 3: check if the module has been registered + // TODO(T174674274): Implement lazy loading of legacy view managers in the new architecture. NSArray *registeredModules = RCTGetModuleClasses(); NSMutableDictionary *supportedLegacyViewComponents = [RCTLegacyViewManagerInteropComponentView _supportedLegacyViewComponents]; diff --git a/packages/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm b/packages/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm index ebd9d5a6e9e..1f4d7488ba3 100644 --- a/packages/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm +++ b/packages/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm @@ -135,6 +135,7 @@ static Class RCTComponentViewClassWithName(const char } // Fallback 3: Try to use Paper Interop. + // TODO(T174674274): Implement lazy loading of legacy view managers in the new architecture. if (RCTFabricInteropLayerEnabled() && [RCTLegacyViewManagerInteropComponentView isSupported:componentNameString]) { RCTLogNewArchitectureValidation( RCTNotAllowedInBridgeless, diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm index e01659a871f..997737d1a0c 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm @@ -231,6 +231,7 @@ static Class getFallbackClassFromName(const char *name) } if (RCTTurboModuleInteropEnabled()) { + // TODO(T174674274): Implement lazy loading of legacy modules in the new architecture. NSMutableDictionary> *legacyInitializedModules = [NSMutableDictionary new]; if ([_delegate respondsToSelector:@selector(extraModulesForBridge:)]) {