@@ -8,9 +8,12 @@ import {
88 CSSType
99} from "../editable-text-base" ;
1010
11+ export * from "../editable-text-base" ;
12+
1113import { profile } from "../../profiling" ;
14+ import { ios } from "../../utils/utils" ;
1215
13- export * from "../editable-text-base" ;
16+ const majorVersion = ios . MajorVersion ;
1417
1518class UITextViewDelegateImpl extends NSObject implements UITextViewDelegate {
1619 public static ObjCProtocols = [ UITextViewDelegate ] ;
@@ -113,6 +116,9 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
113116 private _isShowingHint : boolean ;
114117 public _isEditing : boolean ;
115118
119+ private _hintColor = majorVersion <= 12 ? UIColor . blackColor . colorWithAlphaComponent ( 0.22 ) : UIColor . placeholderTextColor ;
120+ private _textColor = majorVersion <= 12 ? null : UIColor . labelColor ;
121+
116122 createNativeView ( ) {
117123 const textView = NoScrollAnimationUITextView . new ( ) ;
118124 if ( ! textView . font ) {
@@ -173,7 +179,7 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
173179 // Use semi-transparent version of color for back-compatibility
174180 this . nativeTextViewProtected . textColor = color . ios . colorWithAlphaComponent ( 0.22 ) ;
175181 } else {
176- this . nativeTextViewProtected . textColor = UIColor . blackColor . colorWithAlphaComponent ( 0.22 ) ;
182+ this . nativeTextViewProtected . textColor = this . _hintColor ;
177183 }
178184 } else {
179185 const color = this . style . color ;
@@ -182,8 +188,8 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
182188 this . nativeTextViewProtected . textColor = color . ios ;
183189 this . nativeTextViewProtected . tintColor = color . ios ;
184190 } else {
185- this . nativeTextViewProtected . textColor = null ;
186- this . nativeTextViewProtected . tintColor = null ;
191+ this . nativeTextViewProtected . textColor = this . _textColor ;
192+ this . nativeTextViewProtected . tintColor = this . _textColor ;
187193 }
188194 }
189195 }
0 commit comments