1 // Copyright 2018-present 650 Industries. All rights reserved. 2 3 #import <React/RCTBridgeModule.h> 4 #import <ExpoModulesCore/EXModuleRegistryProvider.h> 5 6 // An "adapter" over module registry, for given RCTBridge and NSString 7 // is able to provide an array of exported RCTBridgeModules. Override 8 // it and use in your AppDelegate to export different bridge modules 9 // for different experiences. 10 11 NS_SWIFT_NAME(ModuleRegistryAdapter) 12 @interface EXModuleRegistryAdapter : NSObject 13 14 @property (nonnull, nonatomic, readonly) EXModuleRegistryProvider *moduleRegistryProvider; 15 16 - (instancetype)initWithModuleRegistryProvider:(nonnull EXModuleRegistryProvider *)moduleRegistryProvider 17 __deprecated_msg("Expo modules are now automatically registered. You can remove this method call."); 18 19 - (nonnull NSArray<id<RCTBridgeModule>> *)extraModulesForModuleRegistry:(nonnull EXModuleRegistry *)moduleRegistry; 20 21 - (nonnull NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(nonnull RCTBridge *)bridge 22 __deprecated_msg("Expo modules are now automatically registered. You can replace this with an empty array."); 23 24 @end 25