diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.h b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.h index 4555e46f4db..75b90603268 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.h +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.h @@ -82,7 +82,7 @@ class JSI_EXPORT ObjCTurboModule : public TurboModule { BOOL hasMethodArgConversionSelector(NSString *methodName, int argIndex); SEL getMethodArgConversionSelector(NSString *methodName, int argIndex); NSString *getArgumentTypeName(NSString *methodName, int argIndex); - NSInvocation *getMethodInvocation( + NSInvocation *createMethodInvocation( jsi::Runtime &runtime, bool isSync, const char *methodName, diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm index 594e2fb8c9f..f0ad4e11b95 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm @@ -541,7 +541,7 @@ NSString *ObjCTurboModule::getArgumentTypeName(NSString *methodName, int argInde return nil; } -NSInvocation *ObjCTurboModule::getMethodInvocation( +NSInvocation *ObjCTurboModule::createMethodInvocation( jsi::Runtime &runtime, bool isSync, const char *methodName, @@ -700,7 +700,7 @@ jsi::Value ObjCTurboModule::invokeObjCMethod( } NSMutableArray *retainedObjectsForInvocation = [NSMutableArray arrayWithCapacity:count + 2]; - NSInvocation *inv = getMethodInvocation( + NSInvocation *inv = createMethodInvocation( runtime, isMethodSync(returnType), methodName, selector, args, count, retainedObjectsForInvocation); jsi::Value returnValue = jsi::Value::undefined();