File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 44 */
55
66import { Color , TextField as NTextField } from '@nativescript/core' ;
7+ import { VerticalTextAlignment } from '@nativescript-community/text' ;
78
89type PropType < TObj , TProp extends keyof TObj > = TObj [ TProp ] ;
910
@@ -24,7 +25,14 @@ export class TextField extends NTextField {
2425 placeholderColor : Color ;
2526 variant : string ;
2627 error : string ;
28+ strokeColor : Color ;
29+ strokeInactiveColor : Color ;
30+ strokeDisabledColor : Color ;
31+ floatingColor : Color ;
32+ floatingInactiveColor : Color ;
33+ buttonColor : Color ;
2734 digits : string ;
35+ verticalTextAlignment : VerticalTextAlignment ;
2836
2937 focus ( ) ;
3038 blur ( ) ;
Original file line number Diff line number Diff line change @@ -305,6 +305,8 @@ export class TextField extends TextFieldBase {
305305 this . _updateAttributedPlaceholder ( ) ;
306306 }
307307 [ placeholderColorProperty . setNative ] ( value : UIColor | Color ) {
308+ const color = value instanceof Color ? value . ios : value ;
309+ this . nativeViewProtected . setNormalLabelColorForState ( color , MDCTextControlState . Normal ) ;
308310 this . _updateAttributedPlaceholder ( ) ;
309311 }
310312 [ hintProperty . setNative ] ( value : string ) {
You can’t perform that action at this time.
0 commit comments