Skip to content

chore: Upgrade Nitro to 0.35.0#30

Open
radko93 wants to merge 1 commit intomargelo:mainfrom
radko93:chore/upgrade-nitro-0.35.0
Open

chore: Upgrade Nitro to 0.35.0#30
radko93 wants to merge 1 commit intomargelo:mainfrom
radko93:chore/upgrade-nitro-0.35.0

Conversation

@radko93
Copy link

@radko93 radko93 commented Mar 5, 2026

Summary

This PR upgrades react-native-nitro-modules and nitrogen to 0.35.0, which fixes a critical Kotlin HybridObject memory leak.

See release notes: https://github.com/mrousavy/nitro/releases/tag/v0.35.0

Changes

  • Updated react-native-nitro-modules to 0.35.0 in root, package/, and example/ package.json files
  • Updated nitrogen (codegen) to 0.35.0 in root and package/package.json
  • Updated peerDependencies range for react-native-nitro-modules to >=0.35.0
  • Updated package/android/src/main/cpp/cpp-adapter.cpp to use the new facebook::jni::initialize + registerAllNatives() pattern required by Nitro 0.35.0 (replacing the old margelo::nitro::nitrofetch::initialize(vm) call)
  • Re-ran nitrogen codegen to regenerate all Android/iOS bridge files
  • Re-ran pod install to update example/ios/Podfile.lock

Note on nitro-codegen

The root package.json previously referenced nitro-codegen (the old package name, max version 0.29.4). This has been updated to reference nitrogen (the renamed package) at 0.35.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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