We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29539df commit a9b3d0bCopy full SHA for a9b3d0b
packages/react-native/React/Base/RCTBridgeModule.h
@@ -91,10 +91,13 @@ RCT_EXTERN_C_END
91
{ \
92
return @ #js_name; \
93
} \
94
+ _Pragma("clang diagnostic push") \
95
+ _Pragma("clang diagnostic ignored \"-Wglobal-constructors\"") \
96
__attribute__((constructor)) static void RCT_CONCAT(initialize_, objc_name)(void) \
97
98
RCTRegisterModule([objc_name class]); \
- }
99
+ } \
100
+ _Pragma("clang diagnostic pop")
101
102
// Implemented by RCT_EXPORT_MODULE
103
+ (NSString *)moduleName;
0 commit comments