Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mobile): update and patch reanimated to fix crash #16347

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions patches/react-native-reanimated+3.16.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java b/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java
index 15afbed..5a4f50e 100644
--- a/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java
+++ b/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java
@@ -102,9 +102,11 @@ public class AnimationsManager implements ViewHierarchyObserver {
return;
}

- AndroidUIScheduler androidUIScheduler = mWeakAndroidUIScheduler.get();
- if (androidUIScheduler != null) {
- androidUIScheduler.triggerUI();
+ if (mWeakAndroidUIScheduler != null) {
+ AndroidUIScheduler androidUIScheduler = mWeakAndroidUIScheduler.get();
+ if (androidUIScheduler != null) {
+ androidUIScheduler.triggerUI();
+ }
}
int tag = view.getId();
HashMap<String, Object> targetValues = after.toTargetMap();
2 changes: 1 addition & 1 deletion suite-native/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"react": "18.2.0",
"react-hook-form": "^7.54.2",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/alerts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"jotai": "1.9.1",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1"
"react-native-reanimated": "^3.16.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"react-native-keyboard-aware-scroll-view": "0.9.5",
"react-native-mmkv": "2.12.2",
"react-native-quick-crypto": "^0.7.6",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-restart": "0.0.27",
"react-native-safe-area-context": "^4.14.0",
"react-native-screens": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@suite-native/tokens": "workspace:*",
"react": "^18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/atoms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-gesture-handler": "^2.21.0",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-safe-area-context": "^4.14.0",
"react-native-svg": "15.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/coin-enabling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"expo-linear-gradient": "^14.0.1",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-svg": "^15.9.0",
"react-redux": "8.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/device-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"jotai": "1.9.1",
"react": "^18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-safe-area-context": "^4.14.0",
"react-redux": "8.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/device/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lottie-react-native": "^7.1.0",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7",
"semver": "^7.6.3"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/firmware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@trezor/styles": "workspace:*",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-safe-area-context": "4.14.0",
"react-redux": "8.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jotai": "1.9.1",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7",
"redux-persist": "6.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"expo-image": "^2.0.0",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1"
"react-native-reanimated": "^3.16.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/message-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@trezor/theme": "workspace:*",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/module-accounts-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"react": "18.2.0",
"react-hook-form": "^7.54.2",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/module-authorize-device/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@trezor/styles": "workspace:*",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-svg": "^15.9.0",
"react-redux": "8.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/module-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react": "18.2.0",
"react-hook-form": "^7.54.2",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-svg": "^15.9.0",
"react-redux": "8.0.7",
"web3-utils": "^4.3.1"
Expand Down
2 changes: 1 addition & 1 deletion suite-native/navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-keyboard-aware-scroll-view": "0.9.5",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-safe-area-context": "^4.14.0",
"react-redux": "8.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-gesture-handler": "^2.21.0",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/react-native-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-gesture-handler": "^2.21.0",
"react-native-reanimated": "3.16.1"
"react-native-reanimated": "^3.16.7"
},
"devDependencies": {
"@trezor/eslint": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion suite-native/receive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-gesture-handler": "^2.21.0",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-redux": "8.0.7"
}
}
2 changes: 1 addition & 1 deletion suite-native/toasts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@trezor/theme": "workspace:*",
"jotai": "1.9.1",
"react": "18.2.0",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-safe-area-context": "4.14.0"
}
}
2 changes: 1 addition & 1 deletion suite-native/transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-gesture-handler": "^2.21.0",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "^3.16.7",
"react-native-svg": "15.9.0",
"react-redux": "8.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion suite-native/video-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"prettier": "^3.3.2",
"react": "18.2.0",
"react-native": "0.76.1",
"react-native-reanimated": "3.16.1"
"react-native-reanimated": "^3.16.7"
}
}
Loading
Loading