import { SearchBar as SearchBarDefinition } from "."; import { View, Property, Color, isIOS, CSSType } from "../core/view"; export * from "../core/view"; @CSSType("SearchBar") export abstract class SearchBarBase extends View implements SearchBarDefinition { public static submitEvent = "submit"; public static clearEvent = "clear"; public text: string; public hint: string; public textFieldBackgroundColor: Color; public textFieldHintColor: Color; public abstract dismissSoftInput(); } SearchBarBase.prototype.recycleNativeView = "auto"; export const textProperty = new Property({ name: "text", defaultValue: "", affectsLayout: isIOS }); textProperty.register(SearchBarBase); export const hintProperty = new Property({ name: "hint", defaultValue: "" }); hintProperty.register(SearchBarBase); export const textFieldHintColorProperty = new Property({ name: "textFieldHintColor", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) }); textFieldHintColorProperty.register(SearchBarBase); export const textFieldBackgroundColorProperty = new Property({ name: "textFieldBackgroundColor", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) }); textFieldBackgroundColorProperty.register(SearchBarBase);