import { SearchBar } from "tns-core-modules/ui/search-bar"; import { Color } from "tns-core-modules/color"; import { getColor } from "../helper"; export function getNativeHintColor(searchBar: SearchBar): Color { return (searchBar)._placeholderLabel ? getColor((searchBar)._placeholderLabel.textColor) : undefined; } export function getNativeFontSize(searchBar: SearchBar): number { return (searchBar)._textField ? (searchBar)._textField.font.pointSize : undefined; }