Skip to content

Commit 58afeef

Browse files
cipolleschimeta-codesync[bot]
authored andcommitted
Split macro for static module registration (#53992)
Summary: Pull Request resolved: #53992 This change descouple the Static Module registration from the Disable Legacy arch macro ## Changelog: [Internal] - Reviewed By: RSNara Differential Revision: D83554091 fbshipit-source-id: 515aecc00428281a95441954513ccf21ff180f6f
1 parent 44725b8 commit 58afeef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RCT_EXTERN_C_END
6969
* will be used as the JS module name. If omitted, the JS module name will
7070
* match the Objective-C class name.
7171
*/
72-
#ifndef RCT_REMOVE_LEGACY_ARCH
72+
#ifndef RCT_DISABLE_STATIC_MODULE_REGISTRATION
7373
#define RCT_EXPORT_MODULE(js_name) \
7474
RCT_EXTERN void RCTRegisterModule(Class); \
7575
+(NSString *)moduleName \
@@ -90,7 +90,7 @@ RCT_EXTERN_C_END
9090
return @ #js_name; \
9191
}
9292

93-
#endif // RCT_REMOVE_LEGACY_ARCH
93+
#endif // RCT_DISABLE_STATIC_MODULE_REGISTRATION
9494

9595
/**
9696
* Same as RCT_EXPORT_MODULE, but uses __attribute__((constructor)) for module

0 commit comments

Comments
 (0)