Open History to see the last commit
1diff --git a/ios/turbomodule/NativeNitroModules+NewArch.mm b/ios/turbomodule/NativeNitroModules+NewArch.mm
2--- a/ios/turbomodule/NativeNitroModules+NewArch.mm
3+++ b/ios/turbomodule/NativeNitroModules+NewArch.mm
4@@ -34,6 +34,12 @@
5 }
6 RCT_EXPORT_MODULE(NitroModules)
8+// RN 0.87+ passes the CallInvoker directly when installing JSI bindings.
9+- (void)installJSIBindingsWithRuntime:(jsi::Runtime&)runtime callInvoker:(const std::shared_ptr<react::CallInvoker>&)callInvoker {
10+ _callInvoker = callInvoker;
11+ [self installJSIBindingsWithRuntime:runtime];
12+}
13+
14 - (void)installJSIBindingsWithRuntime:(jsi::Runtime&)runtime {
15 // 1. Get CallInvoker we cached statically
16 std::shared_ptr<react::CallInvoker> callInvoker = _callInvoker.lock();
17diff --git a/package.json b/package.json
18index 4e4366fb9d05a6c250acfc62e79487475d8ac05b..200e4680d77cbb4f14d22eb986efde1275a0d3e8 100644
19--- a/package.json
20+++ b/package.json
21@@ -88,6 +88,11 @@
22 "jsSrcsDir": "./src",
23 "android": {
24 "javaPackageName": "com.margelo.nitro"
25+ },
26+ "ios": {
27+ "modulesProvider": {
28+ "NitroModules": "NativeNitroModules"
29+ }
30 }
31 },
32 "jest": {