// Copyright 2024-present 650 Industries. All rights reserved. #import #import #import #import #import #import @implementation EXHostWrapper { __weak RCTHost *_host; } - (instancetype)initWithHost:(RCTHost *)host { if (self = [super init]) { _host = host; } return self; } - (nullable id)findModuleWithName:(nonnull NSString *)name lazilyLoadIfNecessary:(BOOL)lazilyLoadIfNecessary { RCTModuleRegistry *moduleRegistry = _host.moduleRegistry; return [moduleRegistry moduleForName:[name UTF8String] lazilyLoadIfNecessary:lazilyLoadIfNecessary]; } - (nullable UIView *)findViewWithTag:(NSInteger)tag { RCTComponentViewRegistry *componentViewRegistry = _host.surfacePresenter.mountingManager.componentViewRegistry; return [componentViewRegistry findComponentViewWithTag:tag]; } - (nullable NSURL *)bundleURL { return [_host.bundleManager bundleURL]; } @end