Fix intermittent Android crash by upgrading Reanimated to 4.3.1
Reanimated 4.1.x crashes on Android with a NullPointerException in ViewGroup.dispatchDraw (ReactViewGroup.dispatchDraw) — a child view is null mid-draw because Reanimated commits a ShadowTree change during the Android draw pass, mutating the view hierarchy while it's being painted. Fixed upstream in 4.3.0 (software-mansion/react-native-reanimated#9072). 4.3.x requires react-native-worklets 0.8.x, so worklets moves 0.5.1 -> 0.8.3 in lockstep. react-native is pinned to exact 0.81.5 so the re-resolve can't pull 0.81.6 (which needs react ^19.1.4, conflicting with the react 19.1.0 override), and reanimated/worklets are added to root overrides to force a single version across the tree — two copies of the worklets runtime throw a version-mismatch at startup.
This commit is contained in:
+3
-1
@@ -121,6 +121,8 @@
|
||||
"overrides": {
|
||||
"lightningcss": "1.30.1",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0"
|
||||
"react-dom": "19.1.0",
|
||||
"react-native-reanimated": "4.3.1",
|
||||
"react-native-worklets": "0.8.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user