Skip to content

Commit 770be80

Browse files
joshkeldamtjzel
andauthored
fix: Add React Native 0.82 compatibility support (#8346)
Added React Native 0.82 to compatibility matrix for both react-native-reanimated and react-native-worklets packages. Updated compatibility.json files to include "0.82" for: - react-native-reanimated: nightly, 4.1.x, 4.0.x, 3.19.x - react-native-worklets: nightly, 0.6.x, 0.5.x, 0.4.x This resolves the podspec validation error that prevented installation on React Native 0.82.0 projects. ## Summary Fixes #8343 This PR resolves the compatibility issue preventing react-native-reanimated from being installed on React Native 0.82.0 projects. **Problem:** Users upgrading to React Native 0.82 encounter this podspec validation error: [!] Invalid RNReanimated.podspec file: [Reanimated] React Native 0.82.0 version is not compatible with Reanimated 4.1.2 **Root Cause:** The `compatibility.json` files in both `react-native-reanimated` and `react-native-worklets` packages only list React Native versions up to 0.81. **Solution:** Added "0.82" to the supported React Native version arrays in both compatibility files, following the established pattern for previous version additions. **Impact:** Unblocks all Reanimated users who want to upgrade to React Native 0.82. ## Test plan **Manual Testing:** 1. Create a new React Native 0.82.0 project: ```bash npx [email protected] init TestApp cd TestApp 2. Install react-native-reanimated with this patch: yarn add [email protected] cd ios && pod install && cd .. 3. Verify pod installation completes without the compatibility error 4. Run the app to confirm Reanimated works: npx react-native run-ios Validation: - ✅ JSON syntax validated for both compatibility files - ✅ Version progression follows existing pattern (0.78, 0.79, 0.80, 0.81, 0.82) - ✅ No breaking changes to existing compatibility definitions - ✅ Podspec validation passes with RN 0.82.0 --------- Co-authored-by: Tomasz Żelawski <[email protected]>
1 parent 9ddd052 commit 770be80

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/react-native-reanimated/compatibility.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"nightly": {
3-
"react-native": ["0.78", "0.79", "0.80", "0.81"],
3+
"react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"],
44
"react-native-worklets": ["nightly"]
55
},
66
"4.1.x": {
7-
"react-native": ["0.78", "0.79", "0.80", "0.81"],
7+
"react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"],
88
"react-native-worklets": ["0.5.x", "0.6.x"]
99
},
1010
"4.0.x": {
1111
"react-native": ["0.78", "0.79", "0.80", "0.81"],
1212
"react-native-worklets": ["0.4.x"]
1313
},
1414
"3.19.x": {
15-
"react-native": ["0.78", "0.79", "0.80", "0.81"],
15+
"react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"],
1616
"react-native-worklets": []
1717
},
1818
"3.18.x": {

packages/react-native-worklets/compatibility.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"nightly": {
3-
"react-native": ["0.78", "0.79", "0.80", "0.81"]
3+
"react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"]
44
},
55
"0.6.x": {
6-
"react-native": ["0.78", "0.79", "0.80", "0.81"]
6+
"react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"]
77
},
88
"0.5.x": {
99
"react-native": ["0.78", "0.79", "0.80", "0.81"]

0 commit comments

Comments
 (0)