diff --git a/packages/react-native-babel-preset/package.json b/packages/react-native-babel-preset/package.json index 5eea10e6ab5ff2..57c2eedc65fe42 100644 --- a/packages/react-native-babel-preset/package.json +++ b/packages/react-native-babel-preset/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/babel-preset", - "version": "0.73.15", + "version": "0.73.16", "description": "Babel preset for React Native applications", "main": "src/index.js", "repository": { @@ -51,6 +51,7 @@ "@babel/plugin-transform-typescript": "^7.5.0", "@babel/plugin-transform-unicode-regex": "^7.0.0", "@babel/template": "^7.0.0", + "@react-native/babel-plugin-codegen": "*", "babel-plugin-transform-flow-enums": "^0.0.2", "react-refresh": "^0.4.0" }, diff --git a/packages/react-native-babel-preset/src/configs/main.js b/packages/react-native-babel-preset/src/configs/main.js index 675d51de5f9fbb..5ba10e82590e43 100644 --- a/packages/react-native-babel-preset/src/configs/main.js +++ b/packages/react-native-babel-preset/src/configs/main.js @@ -54,6 +54,13 @@ const getPreset = (src, options) => { ]); } + if ( + !options.disableStaticViewConfigsCodegen && + /\bcodegenNativeComponent