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 4
4
*/
5
5
6
6
import { Color , TextField as NTextField } from '@nativescript/core' ;
7
+ import { VerticalTextAlignment } from '@nativescript-community/text' ;
7
8
8
9
type PropType < TObj , TProp extends keyof TObj > = TObj [ TProp ] ;
9
10
@@ -24,7 +25,14 @@ export class TextField extends NTextField {
24
25
placeholderColor : Color ;
25
26
variant : string ;
26
27
error : string ;
28
+ strokeColor : Color ;
29
+ strokeInactiveColor : Color ;
30
+ strokeDisabledColor : Color ;
31
+ floatingColor : Color ;
32
+ floatingInactiveColor : Color ;
33
+ buttonColor : Color ;
27
34
digits : string ;
35
+ verticalTextAlignment : VerticalTextAlignment ;
28
36
29
37
focus ( ) ;
30
38
blur ( ) ;
Original file line number Diff line number Diff line change @@ -305,6 +305,8 @@ export class TextField extends TextFieldBase {
305
305
this . _updateAttributedPlaceholder ( ) ;
306
306
}
307
307
[ placeholderColorProperty . setNative ] ( value : UIColor | Color ) {
308
+ const color = value instanceof Color ? value . ios : value ;
309
+ this . nativeViewProtected . setNormalLabelColorForState ( color , MDCTextControlState . Normal ) ;
308
310
this . _updateAttributedPlaceholder ( ) ;
309
311
}
310
312
[ hintProperty . setNative ] ( value : string ) {
You can’t perform that action at this time.
0 commit comments