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
This commit is contained in:
Phillip Pan
2023-08-01 08:38:37 -07:00
committed by Facebook GitHub Bot
parent 1c3b3a09b6
commit 8cd5b2a57d
@@ -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;