From 0db000f602076404636ee8f7916f14ecf29197f7 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Fri, 3 Apr 2020 13:05:39 +0200 Subject: [PATCH] Updated package to use flow as dev dependency --- babel.config.js | 2 +- package.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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"