1*ea3f1d02STomasz Sapeta // Copyright 2018-present 650 Industries. All rights reserved.
2*ea3f1d02STomasz Sapeta 
3*ea3f1d02STomasz Sapeta #import <React/RCTBridgeModule.h>
4*ea3f1d02STomasz Sapeta 
5*ea3f1d02STomasz Sapeta // Escape hatch for modules that both have to depend on React Native
6*ea3f1d02STomasz Sapeta // and want to be exported as an internal universal module.
7*ea3f1d02STomasz Sapeta #define EX_RCT_REGISTER_MODULE(external_name) \
8*ea3f1d02STomasz Sapeta   + (const NSString *)moduleName { return @#external_name; } \
9*ea3f1d02STomasz Sapeta   EX_EXPORT_MODULE_WITH_CUSTOM_LOAD(external_name, \
10*ea3f1d02STomasz Sapeta     RCT_EXTERN void RCTRegisterModule(Class); \
11*ea3f1d02STomasz Sapeta     RCTRegisterModule(self); \
12*ea3f1d02STomasz Sapeta   )
13*ea3f1d02STomasz Sapeta 
14*ea3f1d02STomasz Sapeta @protocol EXBridgeModule <RCTBridgeModule>
15*ea3f1d02STomasz Sapeta 
16*ea3f1d02STomasz Sapeta @optional
17*ea3f1d02STomasz Sapeta 
18*ea3f1d02STomasz Sapeta - (void)setBridge:(RCTBridge *)bridge;
19*ea3f1d02STomasz Sapeta 
20*ea3f1d02STomasz Sapeta @end
21