1 import Foundation 2 3 public class NativeModulesProxyModule: Module { 4 public static let moduleName = "NativeModulesProxy" 5 6 public func definition() -> ModuleDefinition { 7 Name(Self.moduleName) 8 9 Constants { () -> [String: Any?] in 10 guard let config = self.appContext?.legacyModulesProxy?.nativeModulesConfig else { 11 // TODO: Throw, but what? 12 return [:] 13 } 14 return config.toDictionary() 15 } 16 } 17 } 18