diff --git a/babel.config.js b/babel.config.js index 5a71250..b462e8c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,7 +1,7 @@ module.exports = function(api) { api.cache(true); return { - presets: ['babel-preset-expo'], + presets: ['babel-preset-expo', '@babel/preset-flow'], env: { production: { plugins: ['react-native-paper/babel'], diff --git a/package.json b/package.json index cea5337..22a4ef8 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,11 @@ "react-native-webview": "7.4.3" }, "devDependencies": { + "@babel/cli": "^7.8.4", + "@babel/core": "^7.9.0", + "@babel/preset-flow": "^7.9.0", "babel-preset-expo": "^8.0.0", + "flow-bin": "^0.122.0", "jest": "^25.1.0", "jest-extended": "^0.11.5", "react-test-renderer": "^16.13.1"