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: 6f6393bdf80a2f9836cbe5e1508da80d6bdc2e2d
  • Loading branch information
philIip authored and facebook-github-bot committed Aug 1, 2023
1 parent 1c3b3a0 commit 8cd5b2a
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 8cd5b2a

Please sign in to comment.