diff --git a/packages/react-native-codegen/src/parsers/utils.js b/packages/react-native-codegen/src/parsers/utils.js index 77d62848e4a..77c30275951 100644 --- a/packages/react-native-codegen/src/parsers/utils.js +++ b/packages/react-native-codegen/src/parsers/utils.js @@ -85,6 +85,12 @@ function verifyPlatforms( return; } + if (name.endsWith('Windows')) { + excludedPlatforms.add('iOS'); + excludedPlatforms.add('android'); + return; + } + if (name.endsWith('Cxx')) { cxxOnly = true; excludedPlatforms.add('iOS');