diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h b/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h index 54936a93de7c5c..027b8d2f696412 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h @@ -17,7 +17,6 @@ // OSS-compatibility layer #import -#import #import #pragma GCC diagnostic push diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm index f07b0301cd28a5..82fff92ff64b7e 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm @@ -38,7 +38,7 @@ auto classFunc = p->second; return classFunc(); } - return RCTThirdPartyFabricComponentsProvider(name); + return nullptr; } #endif // RN_DISABLE_OSS_PLUGIN_HEADER diff --git a/packages/react-native/scripts/codegen/generate-artifacts-executor.js b/packages/react-native/scripts/codegen/generate-artifacts-executor.js index b76d2d4e6153bb..83eff1b9430fa7 100644 --- a/packages/react-native/scripts/codegen/generate-artifacts-executor.js +++ b/packages/react-native/scripts/codegen/generate-artifacts-executor.js @@ -573,27 +573,6 @@ function mustGenerateNativeCode(includeLibraryPath, schemaInfo) { ); } -function createComponentProvider(schemas, supportedApplePlatforms) { - codegenLog('Creating component provider.', true); - const outputDir = path.join( - REACT_NATIVE_PACKAGE_ROOT_FOLDER, - 'React', - 'Fabric', - ); - fs.mkdirSync(outputDir, {recursive: true}); - utils.getCodegen().generateFromSchemas( - { - schemas: schemas, - outputDirectory: outputDir, - supportedApplePlatforms, - }, - { - generators: ['providerIOS'], - }, - ); - codegenLog(`Generated provider in: ${outputDir}`); -} - function findCodegenEnabledLibraries(pkgJson, projectRoot) { const projectLibraries = findProjectRootLibraries(pkgJson, projectRoot); if (pkgJsonIncludesGeneratedCode(pkgJson)) { @@ -785,24 +764,7 @@ function execute(projectRoot, targetPlatform, baseOutputPath) { platform, ); - if ( - rootCodegenTargetNeedsThirdPartyComponentProvider(pkgJson, platform) - ) { - const filteredSchemas = schemaInfos.filter(schemaInfo => - dependencyNeedsThirdPartyComponentProvider( - schemaInfo, - platform, - pkgJson.codegenConfig?.name, - ), - ); - const schemas = filteredSchemas.map(schemaInfo => schemaInfo.schema); - const supportedApplePlatforms = filteredSchemas.map( - schemaInfo => schemaInfo.supportedApplePlatforms, - ); - - createComponentProvider(schemas, supportedApplePlatforms); - generateCustomURLHandlers(libraries, outputPath); - } + generateCustomURLHandlers(libraries, outputPath); cleanupEmptyFilesAndFolders(outputPath); }