t3-code-android-nightly/patches/react-native-nitro-modules@0.35.9.patch
Julius Marminge 8dc07f199c
chore(mobile): upgrade to Expo SDK 58 and React Native 0.88 RC (#12045)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-10-01 10:51:22 -07:00

32 lines
1.1 KiB
Diff

diff --git a/ios/turbomodule/NativeNitroModules+NewArch.mm b/ios/turbomodule/NativeNitroModules+NewArch.mm
--- a/ios/turbomodule/NativeNitroModules+NewArch.mm
+++ b/ios/turbomodule/NativeNitroModules+NewArch.mm
@@ -34,6 +34,12 @@
}
RCT_EXPORT_MODULE(NitroModules)
+// RN 0.87+ passes the CallInvoker directly when installing JSI bindings.
+- (void)installJSIBindingsWithRuntime:(jsi::Runtime&)runtime callInvoker:(const std::shared_ptr<react::CallInvoker>&)callInvoker {
+ _callInvoker = callInvoker;
+ [self installJSIBindingsWithRuntime:runtime];
+}
+
- (void)installJSIBindingsWithRuntime:(jsi::Runtime&)runtime {
// 1. Get CallInvoker we cached statically
std::shared_ptr<react::CallInvoker> callInvoker = _callInvoker.lock();
diff --git a/package.json b/package.json
index 4e4366fb9d05a6c250acfc62e79487475d8ac05b..200e4680d77cbb4f14d22eb986efde1275a0d3e8 100644
--- a/package.json
+++ b/package.json
@@ -88,6 +88,11 @@
"jsSrcsDir": "./src",
"android": {
"javaPackageName": "com.margelo.nitro"
+ },
+ "ios": {
+ "modulesProvider": {
+ "NitroModules": "NativeNitroModules"
+ }
}
},
"jest": {