From 779fc0a986954c1b2ce1559591926962ceb01813 Mon Sep 17 00:00:00 2001 From: evanbacon Date: Fri, 8 Dec 2023 11:08:25 -0600 Subject: [PATCH] update router template --- with-router/babel.config.js | 6 +----- with-router/index.js | 1 - with-router/package.json | 19 +++++-------------- 3 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 with-router/index.js diff --git a/with-router/babel.config.js b/with-router/babel.config.js index 70119666..078efac6 100644 --- a/with-router/babel.config.js +++ b/with-router/babel.config.js @@ -2,10 +2,6 @@ module.exports = function (api) { api.cache(true); return { presets: ["babel-preset-expo"], - plugins: [ - "@babel/plugin-proposal-export-namespace-from", - "react-native-reanimated/plugin", - require.resolve("expo-router/babel"), - ], + plugins: ["expo-router/babel"], }; }; diff --git a/with-router/index.js b/with-router/index.js deleted file mode 100644 index 80d3d998..00000000 --- a/with-router/index.js +++ /dev/null @@ -1 +0,0 @@ -import "expo-router/entry"; diff --git a/with-router/package.json b/with-router/package.json index ba7c2d3e..03550cb2 100644 --- a/with-router/package.json +++ b/with-router/package.json @@ -1,36 +1,27 @@ { "name": "with-router", "version": "1.0.0", - "main": "index.js", + "main": "expo-router/entry", + "scripts": { "start": "expo start" }, "dependencies": { - "expo": "^49.0.3", + "expo": "~49.0.15", "expo-constants": "~14.4.2", "expo-linking": "~5.0.2", - "expo-router": "2.0.0", + "expo-router": "^2.0.0", "expo-splash-screen": "~0.20.4", "expo-status-bar": "~1.6.0", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.72.3", "react-native-gesture-handler": "~2.12.0", - "react-native-reanimated": "~3.3.0", "react-native-safe-area-context": "4.6.3", "react-native-screens": "~3.22.0", "react-native-web": "~0.19.6" }, "devDependencies": { - "@babel/core": "^7.19.3", - "@babel/plugin-proposal-export-namespace-from": "^7.18.9" - }, - "resolutions": { - "metro": "^0.73.7", - "metro-resolver": "^0.73.7" - }, - "overrides": { - "metro": "^0.73.7", - "metro-resolver": "^0.73.7" + "@babel/core": "^7.20.0" } }