Skip to content

fix: Upgrade to Nitro 0.35.0#103

Merged
mrousavy merged 4 commits intomainfrom
fix/upgrade-nitro-35
Mar 4, 2026
Merged

fix: Upgrade to Nitro 0.35.0#103
mrousavy merged 4 commits intomainfrom
fix/upgrade-nitro-35

Conversation

@mrousavy
Copy link
Owner

@mrousavy mrousavy commented Mar 4, 2026

Upgrades to Nitro 0.35.0, which contains a BREAKING CHANGE related to Kotlin HybridObjects (it fixes a critical memory leak, so it is advised everyone upgrades)

Steps I did (you can follow):

  1. Upgrade react-native-nitro-modules and nitrogen to 0.35.0
  2. Run bun install & pod install
  3. Replace all usages of bigint with Int64/UInt64 (in this repo; none)
  4. Re-generate specs using bun nitrogen
  5. (Optionally) replaced the cpp-adapter.cpp call from initialize(vm) with registerAllNatives() - this just allows you to register custom JNI natives in your libs, if needed.

mrousavy added 4 commits March 4, 2026 14:30
Regenerate the specs to implement the breaking change in Nitro related to the Kotlin HybridObject memory leak: mrousavy/nitro#1238
This is fully optional, but recommended for more flexibility for custom JNI registrations if needed.
@mrousavy mrousavy merged commit 02ae634 into main Mar 4, 2026
4 checks passed
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