Pin react to react-native's bundled renderer in Renovate#26
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stops Renovate from bumping
react/react-test-rendererindependently ofreact-native.React asserts at runtime that
reactand thereact-native-rendererbundled insidereact-nativeshare an exact version. Butreact-nativeonly declares a loose peer range (react: ^19.2.3), so Renovate raisedreactto 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:
reactandreact-test-rendererare set toenabled: false— they're now bumped by hand alongside anyreact-nativeupgrade.@types/reactsplits 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
reactbumps;@types/reactand thereact-nativegroup continue to update.