From 73fbe80fc47c8d27148ef61c6f6a6dcb2d9e2c68 Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Fri, 14 May 2021 09:20:09 -0700 Subject: [PATCH] Delete RCTJSInvokerModule protocol Summary: This protocol is no longer necessary, because we introduced the bridgeless-compatible abstraction: RCTCallJSModuleMethod. Changelog: [iOS][Removed] - Delete RCTCallJSModuleMethod protocol Reviewed By: fkgozali Differential Revision: D28395446 fbshipit-source-id: 0ad606ce7935b24bfbd6e0c2f35fbde480a8a6ff --- React/Base/RCTJSInvokerModule.h | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 React/Base/RCTJSInvokerModule.h diff --git a/React/Base/RCTJSInvokerModule.h b/React/Base/RCTJSInvokerModule.h deleted file mode 100644 index cc293177f1e..00000000000 --- a/React/Base/RCTJSInvokerModule.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/** - * This protocol should be adopted when a turbo module needs to directly call into JavaScript. - * In bridge-less React Native, it is a replacement for [_bridge enqueueJSCall:]. - */ -@protocol RCTJSInvokerModule - -@optional -@property (nonatomic, copy) void (^invokeJS)(NSString *module, NSString *method, NSArray *args); - -@end