Skip to content

feat: Upgrade Nitro to 0.37 for View improvements - #4164

Merged
mrousavy merged 5 commits into
mainfrom
feat/upgrade-nitro-view-improvements
Aug 20, 2026
Merged

feat: Upgrade Nitro to 0.37 for View improvements#4164
mrousavy merged 5 commits into
mainfrom
feat/upgrade-nitro-view-improvements

Conversation

@mrousavy

Copy link
Copy Markdown
Member

No description provided.

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview Aug 20, 2026 5:57pm

Request Review

Comment thread package.json Outdated
`*` in peerDependencies does not match prereleases, so bun could not
dedupe the peer onto the hoisted 0.37.0-beta.0 and installed a second
copy at 0.36.5 under each package. That auto-installed peer state also
broke `bun install --frozen-lockfile` in CI - the lockfile round-trips
byte-identically, so regenerating it never helped.

Pin it via a root override for now.
Regenerates specs with nitrogen 0.37.0-beta.1, which migrates the View
prop types from `CachedProp` to `ReactProp`.

beta.1 also re-adds legacy `CachedProp` as deprecated, so
`react-native-nitro-image@0.15.1` - whose generated code still uses
`CachedProp::isDirty`/`::value` - compiles again. That was what broke
Build Android on beta.0.
Superseded by #4165 - marking the peer dependency optional stops the
package manager from resolving a second, stable Nitro next to the
pre-release, so the root override is no longer needed.

Verified from a clean node_modules: exactly one Nitro copy
(0.37.0-beta.1) and `bun install --frozen-lockfile` passes.
Nitro 0.37.0 and nitrogen 0.37.0 are now stable; nitrogen's generated
output is identical to 0.37.0-beta.1, so no spec changes were needed.

Nitro Image 0.15.2 is regenerated with nitrogen 0.37.0 (no more
deprecated `CachedProp`) and marks its `react-native-nitro-modules`
peer dependency as optional.
@mrousavy
mrousavy merged commit a4acf4d into main Aug 20, 2026
7 of 9 checks passed
@mrousavy
mrousavy deleted the feat/upgrade-nitro-view-improvements branch August 20, 2026 18:38
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