diff --git a/example/babel.config.js b/example/babel.config.js index 6b46262d8..71bb3ccf9 100644 --- a/example/babel.config.js +++ b/example/babel.config.js @@ -4,6 +4,7 @@ module.exports = function (api) { presets: ["babel-preset-expo"], plugins: [ "@babel/plugin-transform-export-namespace-from", + "@babel/preset-flow", "react-native-reanimated/plugin", ], }; diff --git a/package.json b/package.json index fe3a598ee..50d95272f 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "@babel/cli": "^7.25.9", "@babel/core": "^7.26.0", "@babel/preset-env": "^7.26.0", + "@babel/preset-flow": "^7.25.9", "@babel/preset-typescript": "^7.26.0", "@eslint/compat": "^1.2.3", "@testing-library/jest-native": "^5.4.3", diff --git a/packages/core/babel.config.js b/packages/core/babel.config.js index a60357e88..6ff982cbc 100644 --- a/packages/core/babel.config.js +++ b/packages/core/babel.config.js @@ -4,6 +4,7 @@ module.exports = (api) => { presets: ["@react-native/babel-preset"], plugins: [ "@babel/plugin-transform-export-namespace-from", + "@babel/preset-flow", "react-native-reanimated/plugin", ], }; diff --git a/packages/ui/babel.config.js b/packages/ui/babel.config.js index a60357e88..6ff982cbc 100644 --- a/packages/ui/babel.config.js +++ b/packages/ui/babel.config.js @@ -4,6 +4,7 @@ module.exports = (api) => { presets: ["@react-native/babel-preset"], plugins: [ "@babel/plugin-transform-export-namespace-from", + "@babel/preset-flow", "react-native-reanimated/plugin", ], }; diff --git a/yarn.lock b/yarn.lock index 697e1099a..de2499cbb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1034,7 +1034,7 @@ core-js-compat "^3.38.1" semver "^6.3.1" -"@babel/preset-flow@^7.13.13": +"@babel/preset-flow@^7.13.13", "@babel/preset-flow@^7.25.9": version "7.25.9" resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.25.9.tgz#ef8b5e7e3f24a42b3711e77fb14919b87dffed0a" integrity sha512-EASHsAhE+SSlEzJ4bzfusnXSHiU+JfAYzj+jbw2vgQKgq5HrUr8qs+vgtiEL5dOH6sEweI+PNt2D7AqrDSHyqQ==