From eb01e2f9d8057b829ea59c58ba37417f0038c9c9 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Tue, 9 Dec 2025 22:24:50 -0300 Subject: [PATCH] fix(companion): update react-native-reanimated to Expo 54 compatible version (#25741) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Android build was failing with errors like: - cannot find symbol: ReactViewBackgroundDrawable - cannot find symbol: TRACE_TAG_REACT_JAVA_BRIDGE - cannot find symbol: getRuntimeExecutor() - no suitable method found for updateLayout Root cause: react-native-reanimated ~3.10.1 is incompatible with React Native 0.81.5 (used by Expo SDK 54). Fix: Update to Expo 54 bundled versions using 'npx expo install': - react-native-reanimated: ~3.10.1 → ~4.1.1 - react-native-worklets: ^0.6.1 → 0.5.1 Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- companion/package-lock.json | 41 ++++++++++++++++++++++--------------- companion/package.json | 4 ++-- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/companion/package-lock.json b/companion/package-lock.json index ad70fa07d0..d18a680e91 100644 --- a/companion/package-lock.json +++ b/companion/package-lock.json @@ -31,11 +31,11 @@ "react-native": "0.81.5", "react-native-context-menu-view": "^1.20.0", "react-native-gesture-handler": "^2.29.1", - "react-native-reanimated": "~3.10.1", + "react-native-reanimated": "~4.1.1", "react-native-safe-area-context": "5.4.0", "react-native-svg": "^15.15.0", "react-native-web": "^0.21.2", - "react-native-worklets": "^0.6.1" + "react-native-worklets": "0.5.1" }, "devDependencies": { "@types/chrome": "^0.1.31", @@ -13016,24 +13016,31 @@ } }, "node_modules/react-native-reanimated": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-3.10.1.tgz", - "integrity": "sha512-sfxg6vYphrDc/g4jf/7iJ7NRi+26z2+BszPmvmk0Vnrz6FL7HYljJqTf531F1x6tFmsf+FEAmuCtTUIXFLVo9w==", + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-4.1.6.tgz", + "integrity": "sha512-F+ZJBYiok/6Jzp1re75F/9aLzkgoQCOh4yxrnwATa8392RvM3kx+fiXXFvwcgE59v48lMwd9q0nzF1oJLXpfxQ==", "license": "MIT", "dependencies": { - "@babel/plugin-transform-arrow-functions": "^7.0.0-0", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.0.0-0", - "@babel/plugin-transform-optional-chaining": "^7.0.0-0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0-0", - "@babel/plugin-transform-template-literals": "^7.0.0-0", - "@babel/preset-typescript": "^7.16.7", - "convert-source-map": "^2.0.0", - "invariant": "^2.2.4" + "react-native-is-edge-to-edge": "^1.2.1", + "semver": "7.7.2" }, "peerDependencies": { "@babel/core": "^7.0.0-0", "react": "*", - "react-native": "*" + "react-native": "*", + "react-native-worklets": ">=0.5.0" + } + }, + "node_modules/react-native-reanimated/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/react-native-safe-area-context": { @@ -13110,9 +13117,9 @@ "license": "MIT" }, "node_modules/react-native-worklets": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/react-native-worklets/-/react-native-worklets-0.6.1.tgz", - "integrity": "sha512-URca8l7c7Uog7gv4mcg9KILdJlnbvwdS5yfXQYf5TDkD2W1VY1sduEKrD+sA3lUPXH/TG1vmXAvNxCNwPMYgGg==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/react-native-worklets/-/react-native-worklets-0.5.1.tgz", + "integrity": "sha512-lJG6Uk9YuojjEX/tQrCbcbmpdLCSFxDK1rJlkDhgqkVi1KZzG7cdcBFQRqyNOOzR9Y0CXNuldmtWTGOyM0k0+w==", "license": "MIT", "dependencies": { "@babel/plugin-transform-arrow-functions": "^7.0.0-0", diff --git a/companion/package.json b/companion/package.json index 724e2da035..4884ea161c 100644 --- a/companion/package.json +++ b/companion/package.json @@ -39,11 +39,11 @@ "react-native": "0.81.5", "react-native-context-menu-view": "^1.20.0", "react-native-gesture-handler": "^2.29.1", - "react-native-reanimated": "~3.10.1", + "react-native-reanimated": "~4.1.1", "react-native-safe-area-context": "5.4.0", "react-native-svg": "^15.15.0", "react-native-web": "^0.21.2", - "react-native-worklets": "^0.6.1" + "react-native-worklets": "0.5.1" }, "private": true, "devDependencies": {