fix(text-base): apply dynamic text color change on button for ios (#8635)

This commit is contained in:
dosomder
2020-06-16 21:45:23 +02:00
committed by GitHub
parent c73952f364
commit 5cacc25aa7
4 changed files with 28 additions and 6 deletions

View File

@@ -293,12 +293,6 @@ export class TextBase extends TextBaseCommon {
}
}
if (style.color) {
dict.set(NSForegroundColorAttributeName, style.color.ios);
} else if (majorVersion >= 13 && UIColor.labelColor) {
dict.set(NSForegroundColorAttributeName, UIColor.labelColor);
}
const isTextView = this.nativeTextViewProtected instanceof UITextView;
if (style.lineHeight) {
const paragraphStyle = NSMutableParagraphStyle.alloc().init();