/// Here we implement the components exclusive for view managers. // MARK: View factory /** Defines the factory creating a native view when the module is used as a view. */ @available(*, deprecated, renamed: "View") public func view(_ closure: @escaping () -> UIView) -> ViewManagerDefinitionComponent { return ViewFactory(closure) } /** Defines the factory creating a native view when the module is used as a view. */ public func View(_ closure: @escaping () -> UIView) -> ViewManagerDefinitionComponent { return ViewFactory(closure) } // MARK: Props /** Creates a view prop that defines its name and setter. */ @available(*, deprecated, renamed: "Prop") public func prop( _ name: String, _ setter: @escaping (ViewType, PropType) -> Void ) -> ViewManagerDefinitionComponent { return ConcreteViewProp( name: name, propType: ~PropType.self, setter: setter ) } /** Creates a view prop that defines its name and setter. */ public func Prop( _ name: String, _ setter: @escaping (ViewType, PropType) -> Void ) -> ViewManagerDefinitionComponent { return ConcreteViewProp( name: name, propType: ~PropType.self, setter: setter ) }