feat(core): maxLines support for all text components (#9884)

This commit is contained in:
farfromrefuge
2022-04-30 19:50:05 +02:00
committed by GitHub
parent 17a87a4a86
commit df10ceb491
12 changed files with 57 additions and 40 deletions

View File

@@ -117,7 +117,7 @@ export class Label extends TextBase implements LabelDefinition {
switch (value) {
case 'normal':
nativeView.lineBreakMode = NSLineBreakMode.ByWordWrapping;
nativeView.numberOfLines = 0;
nativeView.numberOfLines = this.maxLines;
break;
case 'nowrap':
case 'initial':