1// Copyright © 2018 650 Industries. All rights reserved.
2
3#import "EXScopedModuleRegistryDelegate.h"
4
5@implementation EXScopedModuleRegistryDelegate
6
7- (instancetype)initWithParams:(NSDictionary *)params
8{
9  return self = [super init];
10}
11
12- (id<UMInternalModule>)pickInternalModuleImplementingInterface:(Protocol *)interface fromAmongModules:(NSArray<id<UMInternalModule>> *)internalModules
13{
14  // In ExpoKit we know all the overlapping classes -- the only ones are added
15  // in EXScopedModuleRegistryAdapter at the last moment before conflict resolution,
16  // so they'll be at the end of the array.
17  return [internalModules lastObject];
18}
19
20@end
21