mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 03:41:17 +02:00
32 lines
1.1 KiB
Diff
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": {
|