Skip to content

Commit 3602cc2

Browse files
dfallingclaude
andauthored
Pin react to react-native's bundled renderer in Renovate (#26)
React asserts at runtime that `react` and the `react-native-renderer` bundled inside react-native share an exact version, but react-native only declares a loose peer range, so Renovate happily bumped react past the renderer (19.2.7 vs 19.2.3) and the app crashed at launch. Renovate can't see the bundled renderer version, so stop updating react/react-test-renderer automatically — they're now bumped by hand alongside react-native. @types/react splits out into its own group since it tracks the public API, not the renderer. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7d9d3f1 commit 3602cc2

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

renovate.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
"groupName": "react-native"
1313
},
1414
{
15-
"description": "Group React and its companions — react-test-renderer is pinned to the React version",
16-
"matchPackageNames": ["react", "react-test-renderer", "@types/react"],
17-
"groupName": "react"
15+
"description": "Do not bump react/react-test-renderer on their own — they must exactly match the react-native-renderer bundled in react-native. React asserts that equality at runtime, but react-native only declares a loose peer range (e.g. ^19.2.3), so Renovate would otherwise raise react past the bundled renderer and crash the app at launch (this happened: react 19.2.7 vs renderer 19.2.3). Renovate cannot read the bundled renderer version, so these are pinned and updated by hand together with the react-native upgrade.",
16+
"matchPackageNames": ["react", "react-test-renderer"],
17+
"enabled": false
18+
},
19+
{
20+
"description": "@types/react tracks the public React API, not the bundled renderer, so it is safe to update on its own",
21+
"matchPackageNames": ["@types/react"],
22+
"groupName": "react-types"
1823
},
1924
{
2025
"description": "Group all GraphQL Codegen packages together",

0 commit comments

Comments
 (0)