Skip to content

Commit 8cd5b2a

Browse files
philIipfacebook-github-bot
authored andcommitted
delete RCT_EXPORT_PRE_REGISTERED_MODULE (#38707)
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
1 parent 1c3b3a0 commit 8cd5b2a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/react-native/React/Base/RCTBridgeModule.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,6 @@ RCT_EXTERN_C_END
9494
RCTRegisterModule([objc_name class]); \
9595
}
9696

97-
/**
98-
* To improve startup performance users may want to generate their module lists
99-
* at build time and hook the delegate to merge with the runtime list. This
100-
* macro takes the place of the above for those cases by omitting the +load
101-
* generation.
102-
*
103-
*/
104-
#define RCT_EXPORT_PRE_REGISTERED_MODULE(js_name) \
105-
+(NSString *)moduleName \
106-
{ \
107-
return @ #js_name; \
108-
}
109-
11097
// Implemented by RCT_EXPORT_MODULE
11198
+ (NSString *)moduleName;
11299

0 commit comments

Comments
 (0)