1 // Copyright 2018-present 650 Industries. All rights reserved.
2 
3 #import <React/RCTBridgeModule.h>
4 
5 #import <ExpoModulesCore/EXInternalModule.h>
6 #import <ExpoModulesCore/EXModuleRegistry.h>
7 
8 // RCTBridgeModule capable of receiving method calls from JS and forwarding them
9 // to proper exported universal modules. Also, it exports important constants to JS, like
10 // properties of exported methods and modules' constants.
11 
12 NS_SWIFT_NAME(NativeModulesProxy)
13 @interface EXNativeModulesProxy : NSObject <RCTBridgeModule>
14 
15 - (nonnull instancetype)init;
16 - (nonnull instancetype)initWithModuleRegistry:(nullable EXModuleRegistry *)moduleRegistry;
17 
18 - (void)callMethod:(NSString *)moduleName methodNameOrKey:(id)methodNameOrKey arguments:(NSArray *)arguments resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
19 
20 @end
21