chore: Upgrade to Nitro 0.35.0#4849
Open
mrousavy wants to merge 5 commits intoTheWidlarzGroup:masterfrom
Open
Conversation
KrzysztofMoch
approved these changes
Mar 4, 2026
Contributor
KrzysztofMoch
left a comment
There was a problem hiding this comment.
Also, I removed the nitrogen and react-native-nitro-modules patches since I don't think they are necessary anymore. The boolean/number thing in Swift has been fixed upstream, and the exception handling is fixed in react-native core :)
I agree. latest React Native is already 0.84, so it shoud be safe to remove that.
*1: Shouldn't duration be a number (double)? Right now, it can't have commas. It's documented as "The duration of the video in seconds.", and seconds definitely has commas.
Yes, nice find — we need to change it to ms or leave as it is and change type to a number.
Contributor
Author
|
I think seconds is good, and double. I do the same in VisionCamera |
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.
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):
bigintwithInt64/UInt64(in this repo;durationandfileSize*1)bun nitrogencpp-adapter.cppcall frominitialize(vm)withregisterAllNatives()- this just allows you to register custom JNI natives in your libs, if needed.Also, I removed the nitrogen and react-native-nitro-modules patches since I don't think they are necessary anymore. The boolean/number thing in Swift has been fixed upstream, and the exception handling is fixed in react-native core :)
durationbe anumber(double)? Right now, it can't have commas. It's documented as "The duration of the video in seconds.", and seconds definitely has commas.