Skip to content

Commit b2bacc4

Browse files
authored
[RN][Codegen] Do not generate Apple specific file for Android (#50655)
1 parent d068888 commit b2bacc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/scripts/codegen/generate-artifacts-executor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,8 @@ function execute(projectRoot, targetPlatform, baseOutputPath, source) {
10811081
platform,
10821082
);
10831083

1084-
if (source === 'app') {
1085-
// These components are only required by apps, not by libraries
1084+
if (source === 'app' && platform !== 'android') {
1085+
// These components are only required by apps, not by libraries. They are also Apple specific.
10861086
generateRCTThirdPartyComponents(libraries, outputPath);
10871087
generateRCTModuleProviders(projectRoot, pkgJson, libraries, outputPath);
10881088
generateCustomURLHandlers(libraries, outputPath);

0 commit comments

Comments
 (0)