mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 06:10:56 +08:00
11 lines
473 B
TypeScript
11 lines
473 B
TypeScript
import { SearchBar } from "ui/search-bar";
|
|
import { Color } from "color";
|
|
import * as utils from "utils/utils";
|
|
|
|
export function getNativeHintColor(searchBar: SearchBar): Color {
|
|
return (<any>searchBar)._placeholderLabel ? utils.ios.getColor((<any>searchBar)._placeholderLabel.textColor) : undefined;
|
|
}
|
|
export function getNativeFontSize(searchBar: SearchBar): number {
|
|
return (<any>searchBar)._textField ? (<any>searchBar)._textField.font.pointSize : undefined;
|
|
}
|