mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Remove wrong type check
This commit is contained in:
@ -70,9 +70,7 @@ export class TextBase extends TextBaseCommon {
|
|||||||
console.log("Setting native color: " + value);
|
console.log("Setting native color: " + value);
|
||||||
let nativeView = this.nativeView;
|
let nativeView = this.nativeView;
|
||||||
if (nativeView instanceof UIButton) {
|
if (nativeView instanceof UIButton) {
|
||||||
if (value instanceof UIColor) {
|
nativeView.setTitleColorForState(value.ios, UIControlState.Normal);
|
||||||
nativeView.setTitleColorForState(value.ios, UIControlState.Normal);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
nativeView.textColor = value.ios;
|
nativeView.textColor = value.ios;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user