Skip to content

Commit

Permalink
delete RCT_EXPORT_PRE_REGISTERED_MODULE (#38707)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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: 04b6d7213211576ff986a849ab08b5bd09605d9b
  • Loading branch information
philIip authored and facebook-github-bot committed Aug 1, 2023
1 parent 5eaf28b commit 02505d6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/react-native/React/Base/RCTBridgeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 02505d6

Please sign in to comment.