Skip to content

Pin react to react-native's bundled renderer in Renovate#26

Merged
dfalling merged 1 commit into
mainfrom
renovate-tie-react-to-react-native
Jun 3, 2026
Merged

Pin react to react-native's bundled renderer in Renovate#26
dfalling merged 1 commit into
mainfrom
renovate-tie-react-to-react-native

Conversation

@dfalling
Copy link
Copy Markdown
Owner

@dfalling dfalling commented Jun 3, 2026

Summary

Stops Renovate from bumping react/react-test-renderer independently of react-native.

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 (react: ^19.2.3), so Renovate raised react to 19.2.7 while the bundled renderer stayed at 19.2.3 — crashing the app at launch (the issue fixed in #25).

Renovate can't read the bundled renderer version, so grouping wouldn't help (grouping batches PRs, it doesn't cap versions). Instead:

  • react and react-test-renderer are set to enabled: false — they're now bumped by hand alongside any react-native upgrade.
  • @types/react splits into its own group, since it tracks the public React API (not the renderer) and is safe to update on its own.

Validated with renovate-config-validator (config validated successfully).

Test plan

  • Renovate config validates cleanly.
  • Next Renovate run should no longer propose standalone react bumps; @types/react and the react-native group continue to update.

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>
@dfalling dfalling merged commit 3602cc2 into main Jun 3, 2026
2 checks passed
@dfalling dfalling deleted the renovate-tie-react-to-react-native branch June 3, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant