Files
NativeScript/tests/app/ui/search-bar/search-bar-tests-native.ios.ts
2017-03-06 14:05:55 +02:00

11 lines
463 B
TypeScript

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