From 8cd5b2a57d5b6af2ef1c6b1d673e328353ea776b Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Tue, 1 Aug 2023 08:38:37 -0700 Subject: [PATCH] delete RCT_EXPORT_PRE_REGISTERED_MODULE (#38707) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38707 Changelog: [iOS][Breaking] seemed like a confusing api, so getting rid of it also did not see any libraries using this in GH: https://github.com/search?q=RCT_EXPORT_PRE_REGISTERED_MODULE&type=code, so can just delete this safely Reviewed By: fkgozali Differential Revision: D47919116 fbshipit-source-id: 6f6393bdf80a2f9836cbe5e1508da80d6bdc2e2d --- packages/react-native/React/Base/RCTBridgeModule.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/react-native/React/Base/RCTBridgeModule.h b/packages/react-native/React/Base/RCTBridgeModule.h index 7e7cf91cd6cfa6..15d871fa76a7cd 100644 --- a/packages/react-native/React/Base/RCTBridgeModule.h +++ b/packages/react-native/React/Base/RCTBridgeModule.h @@ -94,19 +94,6 @@ RCT_EXTERN_C_END RCTRegisterModule([objc_name class]); \ } -/** - * To improve startup performance users may want to generate their module lists - * at build time and hook the delegate to merge with the runtime list. This - * macro takes the place of the above for those cases by omitting the +load - * generation. - * - */ -#define RCT_EXPORT_PRE_REGISTERED_MODULE(js_name) \ - +(NSString *)moduleName \ - { \ - return @ #js_name; \ - } - // Implemented by RCT_EXPORT_MODULE + (NSString *)moduleName;