Skip to content

Commit cdc5c59

Browse files
authored
Use stable Reanimated and Worklets (#4473)
## Description Moves the example apps and the library dev dependency from Reanimated/Worklets nightlies to the stable releases (4.6.0 / 0.12.1). The nightly worklets patch (jest mock fix) is no longer needed with the stable release, so the patch file and its references are removed. `expo` is additionally pinned to exact 57.0.16. The patched resolution is keyed on the `expo-modules-core` range that `expo` declares (`~57.0.13`), so a future expo release changing that range would silently stop applying the patch; an exact pin prevents that. ## Test plan - yarn install - Build expo-example on Android and iOS, check that `expo-modules-core` compiles against Worklets 0.12.1.
1 parent 7e1de71 commit cdc5c59

9 files changed

Lines changed: 557 additions & 574 deletions

File tree

.yarn/patches/expo-modules-core-npm-57.0.10-1d55439aaa.patch renamed to .yarn/patches/expo-modules-core-npm-57.0.13-a9a5cb7828.patch

File renamed without changes.

‎apps/basic-example/ios/Podfile.lock‎

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,8 +1625,9 @@ PODS:
16251625
- ReactCodegen
16261626
- ReactCommon/turbomodule/core
16271627
- ReactNativeDependencies
1628+
- RNWorklets (>= 0.8.0)
16281629
- Yoga
1629-
- RNReanimated (4.6.0-nightly-20260811-248dee712):
1630+
- RNReanimated (4.6.0):
16301631
- hermes-engine
16311632
- RCTRequired
16321633
- RCTTypeSafety
@@ -1648,12 +1649,12 @@ PODS:
16481649
- ReactCodegen
16491650
- ReactCommon/turbomodule/core
16501651
- ReactNativeDependencies
1651-
- RNReanimated/apple (= 4.6.0-nightly-20260811-248dee712)
1652-
- RNReanimated/common (= 4.6.0-nightly-20260811-248dee712)
1653-
- RNReanimated/view (= 4.6.0-nightly-20260811-248dee712)
1652+
- RNReanimated/apple (= 4.6.0)
1653+
- RNReanimated/common (= 4.6.0)
1654+
- RNReanimated/view (= 4.6.0)
16541655
- RNWorklets
16551656
- Yoga
1656-
- RNReanimated/apple (4.6.0-nightly-20260811-248dee712):
1657+
- RNReanimated/apple (4.6.0):
16571658
- hermes-engine
16581659
- RCTRequired
16591660
- RCTTypeSafety
@@ -1677,7 +1678,7 @@ PODS:
16771678
- ReactNativeDependencies
16781679
- RNWorklets
16791680
- Yoga
1680-
- RNReanimated/common (4.6.0-nightly-20260811-248dee712):
1681+
- RNReanimated/common (4.6.0):
16811682
- hermes-engine
16821683
- RCTRequired
16831684
- RCTTypeSafety
@@ -1701,7 +1702,7 @@ PODS:
17011702
- ReactNativeDependencies
17021703
- RNWorklets
17031704
- Yoga
1704-
- RNReanimated/view (4.6.0-nightly-20260811-248dee712):
1705+
- RNReanimated/view (4.6.0):
17051706
- hermes-engine
17061707
- RCTRequired
17071708
- RCTTypeSafety
@@ -1725,7 +1726,7 @@ PODS:
17251726
- ReactNativeDependencies
17261727
- RNWorklets
17271728
- Yoga
1728-
- RNWorklets (0.12.0-nightly-20260810-fb9cb5596):
1729+
- RNWorklets (0.12.1):
17291730
- hermes-engine
17301731
- RCTRequired
17311732
- RCTTypeSafety
@@ -1747,10 +1748,10 @@ PODS:
17471748
- ReactCodegen
17481749
- ReactCommon/turbomodule/core
17491750
- ReactNativeDependencies
1750-
- RNWorklets/apple (= 0.12.0-nightly-20260810-fb9cb5596)
1751-
- RNWorklets/common (= 0.12.0-nightly-20260810-fb9cb5596)
1751+
- RNWorklets/apple (= 0.12.1)
1752+
- RNWorklets/common (= 0.12.1)
17521753
- Yoga
1753-
- RNWorklets/apple (0.12.0-nightly-20260810-fb9cb5596):
1754+
- RNWorklets/apple (0.12.1):
17541755
- hermes-engine
17551756
- RCTRequired
17561757
- RCTTypeSafety
@@ -1773,7 +1774,7 @@ PODS:
17731774
- ReactCommon/turbomodule/core
17741775
- ReactNativeDependencies
17751776
- Yoga
1776-
- RNWorklets/common (0.12.0-nightly-20260810-fb9cb5596):
1777+
- RNWorklets/common (0.12.1):
17771778
- hermes-engine
17781779
- RCTRequired
17791780
- RCTTypeSafety
@@ -2155,9 +2156,9 @@ SPEC CHECKSUMS:
21552156
ReactCodegen: af9d73dcac8951d8a47920882b803da2986e3da7
21562157
ReactCommon: 5f5a302748322015f2e3334869cdd9b4d0395846
21572158
ReactNativeDependencies: ec5530432d8191b38e278117d498aaff05ea9d6f
2158-
RNGestureHandler: dfc704eec0da8c9e41fd0777c89ee3f189215aa8
2159-
RNReanimated: 6f5f50d510382e9037d2d70b06e1ea756ed466f4
2160-
RNWorklets: a19c20a614321f41d6416de7feeab2b97baa0c86
2159+
RNGestureHandler: 22799afa4befa8246f24999ebc44d3af83678622
2160+
RNReanimated: eabb9b5c492b8e1f16f5523c354ab3a8770c4102
2161+
RNWorklets: 1d81d29f943ad914556a0ad6b5f6b1c50aa844c0
21612162
SocketRocket: 37aec555668fb852ec12e3c0de59a86ca58f0871
21622163
Yoga: d1c536142c5ff8ec8cd856ab2a7c227a1d875c8e
21632164

‎apps/basic-example/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"react": "19.2.3",
2121
"react-native": "0.87.0",
2222
"react-native-gesture-handler": "workspace:*",
23-
"react-native-reanimated": "4.6.0-nightly-20260811-248dee712",
24-
"react-native-worklets": "patch:react-native-worklets@npm%3A0.12.0-nightly-20260810-fb9cb5596#~/.yarn/patches/react-native-worklets-npm-0.12.0-nightly-20260810-fb9cb5596-f08a72b88e.patch"
23+
"react-native-reanimated": "4.6.0",
24+
"react-native-worklets": "0.12.1"
2525
},
2626
"devDependencies": {
2727
"@babel/core": "^7.25.2",

‎apps/common-app/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"@swmansion/icons": "^0.0.1",
2525
"react-native-gesture-handler": "workspace:*",
2626
"react-native-pager-view": "^8.0.2",
27-
"react-native-reanimated": "4.6.0-nightly-20260811-248dee712",
27+
"react-native-reanimated": "4.6.0",
2828
"react-native-safe-area-context": "~5.7.0",
2929
"react-native-screens": "4.25.2",
3030
"react-native-svg": "15.15.4",
31-
"react-native-worklets": "patch:react-native-worklets@npm%3A0.12.0-nightly-20260810-fb9cb5596#~/.yarn/patches/react-native-worklets-npm-0.12.0-nightly-20260810-fb9cb5596-f08a72b88e.patch"
31+
"react-native-worklets": "0.12.1"
3232
},
3333
"devDependencies": {
3434
"@babel/core": "^7.25.2",

‎apps/expo-example/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
"@react-navigation/stack": "^7.2.10",
1919
"@swmansion/icons": "^0.0.1",
2020
"common-app": "workspace:*",
21-
"expo": "^57.0.0",
21+
"expo": "57.0.16",
2222
"expo-camera": "~57.0.3",
2323
"expo-status-bar": "~57.0.1",
2424
"react": "19.2.3",
2525
"react-dom": "19.2.3",
2626
"react-native": "0.86.2",
2727
"react-native-gesture-handler": "workspace:*",
2828
"react-native-pager-view": "^8.0.2",
29-
"react-native-reanimated": "4.6.0-nightly-20260811-248dee712",
29+
"react-native-reanimated": "4.6.0",
3030
"react-native-safe-area-context": "~5.7.0",
3131
"react-native-screens": "4.25.2",
3232
"react-native-svg": "15.15.4",
3333
"react-native-web": "^0.21.0",
34-
"react-native-worklets": "patch:react-native-worklets@npm%3A0.12.0-nightly-20260810-fb9cb5596#~/.yarn/patches/react-native-worklets-npm-0.12.0-nightly-20260810-fb9cb5596-f08a72b88e.patch"
34+
"react-native-worklets": "0.12.1"
3535
},
3636
"devDependencies": {
3737
"@babel/core": "^7.25.2",

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
},
3838
"packageManager": "yarn@4.13.0",
3939
"resolutions": {
40-
"expo-modules-core@npm:~57.0.10": "patch:expo-modules-core@npm%3A57.0.10#~/.yarn/patches/expo-modules-core-npm-57.0.10-1d55439aaa.patch"
40+
"expo-modules-core@npm:~57.0.13": "patch:expo-modules-core@npm%3A57.0.13#~/.yarn/patches/expo-modules-core-npm-57.0.13-a9a5cb7828.patch"
4141
}
4242
}

‎packages/react-native-gesture-handler/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
"react": "19.2.3",
9797
"react-native": "0.87.0",
9898
"react-native-builder-bob": "^0.40.13",
99-
"react-native-reanimated": "4.6.0-nightly-20260811-248dee712",
100-
"react-native-worklets": "patch:react-native-worklets@npm%3A0.12.0-nightly-20260810-fb9cb5596#~/.yarn/patches/react-native-worklets-npm-0.12.0-nightly-20260810-fb9cb5596-f08a72b88e.patch",
99+
"react-native-reanimated": "4.6.0",
100+
"react-native-worklets": "0.12.1",
101101
"react-test-renderer": "19.2.3",
102102
"typescript": "~6.0.3"
103103
},

‎yarn.config.cjs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ module.exports = {
22
// eslint-disable-next-line @typescript-eslint/require-await
33
async constraints({ Yarn }) {
44
const sharedVersions = {
5-
'react-native-reanimated': '4.6.0-nightly-20260811-248dee712',
6-
'react-native-worklets':
7-
'patch:react-native-worklets@npm%3A0.12.0-nightly-20260810-fb9cb5596#~/.yarn/patches/react-native-worklets-npm-0.12.0-nightly-20260810-fb9cb5596-f08a72b88e.patch',
5+
'react-native-reanimated': '4.6.0',
6+
'react-native-worklets': '0.12.1',
87
};
98

109
for (const [ident, expectedVersion] of Object.entries(sharedVersions)) {

0 commit comments

Comments
 (0)