Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/react-native/React/Base/RCTBridgeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ RCT_EXTERN_C_END
* will be used as the JS module name. If omitted, the JS module name will
* match the Objective-C class name.
*/
#ifndef RCT_REMOVE_LEGACY_ARCH
#ifndef RCT_DISABLE_STATIC_MODULE_REGISTRATION
#define RCT_EXPORT_MODULE(js_name) \
RCT_EXTERN void RCTRegisterModule(Class); \
+(NSString *)moduleName \
Expand All @@ -90,7 +90,7 @@ RCT_EXTERN_C_END
return @ #js_name; \
}

#endif // RCT_REMOVE_LEGACY_ARCH
#endif // RCT_DISABLE_STATIC_MODULE_REGISTRATION

/**
* Same as RCT_EXPORT_MODULE, but uses __attribute__((constructor)) for module
Expand Down
Loading