From 72a949464448b56ba4be7a8270c757c6f71373cf Mon Sep 17 00:00:00 2001 From: Bohdan Artiukhov <69891500+bohdanprog@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:23:39 +0200 Subject: [PATCH] chore: TestsExample app fix reanimated and metro.config issues (#2291) # Summary We want to fix the TextExample app - change version of react-native-reanimated. - add to `metro.config.js` extraNodeModules: ``` 'react-native-svg': `${__dirname}/../` ``` ## Test Plan test manually. --- TestsExample/metro.config.js | 11 +++++++---- TestsExample/package.json | 2 +- TestsExample/yarn.lock | 14 ++++++-------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/TestsExample/metro.config.js b/TestsExample/metro.config.js index 8891b995..edab21f5 100644 --- a/TestsExample/metro.config.js +++ b/TestsExample/metro.config.js @@ -30,10 +30,13 @@ const config = { ), ), - extraNodeModules: modules.reduce((acc, name) => { - acc[name] = path.join(__dirname, 'node_modules', name); - return acc; - }, {}), + extraNodeModules: modules.reduce( + (acc, name) => { + acc[name] = path.join(__dirname, 'node_modules', name); + return acc; + }, + {'react-native-svg': `${__dirname}/../`}, + ), }, transformer: { diff --git a/TestsExample/package.json b/TestsExample/package.json index b4e8d1a7..40a029ee 100644 --- a/TestsExample/package.json +++ b/TestsExample/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "18.2.0", "react-native": "0.73.1", - "react-native-reanimated": "3.6.1", + "react-native-reanimated": "3.7.0", "react-native-svg": "link:../" }, "devDependencies": { diff --git a/TestsExample/yarn.lock b/TestsExample/yarn.lock index b6593069..602cba8e 100644 --- a/TestsExample/yarn.lock +++ b/TestsExample/yarn.lock @@ -5644,10 +5644,10 @@ react-is@^17.0.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== -react-native-reanimated@3.6.1: - version "3.6.1" - resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.6.1.tgz#5add41efafac6d0befd9786e752e7f26dbe903b7" - integrity sha512-F4vG9Yf9PKmE3GaWtVGUpzj3SM6YY2cx1yRHCwiMd1uY7W0gU017LfcVUorboJnj0y5QZqEriEK1Usq2Y8YZqg== +react-native-reanimated@3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.7.0.tgz#ad36b86533c0aa5e64795b05588dfd656d490039" + integrity sha512-KM+MKa3CJWqsF4GlOLLKBxTR2NEcrg5/HP9J2b6Dfgvll1sjZPywCOEEIh967SboEU8N9LjYZuoVm2UoXGxp2Q== dependencies: "@babel/plugin-transform-object-assign" "^7.16.7" "@babel/preset-typescript" "^7.16.7" @@ -5655,10 +5655,8 @@ react-native-reanimated@3.6.1: invariant "^2.2.4" "react-native-svg@link:..": - version "14.1.0" - dependencies: - css-select "^5.1.0" - css-tree "^1.1.3" + version "0.0.0" + uid "" react-native@0.73.1: version "0.73.1"