chore: e2e automated tests

This commit is contained in:
Nathan Walker
2022-07-22 11:31:10 -07:00
parent 8f91f3bd5f
commit 4f56d8650b
5 changed files with 56 additions and 49 deletions

View File

@@ -200,7 +200,7 @@ export class TextBase extends TextBaseCommon {
[maxLinesProperty.setNative](value: CoreTypes.MaxLinesType) {
const nativeTextViewProtected = this.nativeTextViewProtected;
const numberOfLines = this.whiteSpace === 'normal' ? value : 1;
const numberOfLines = this.whiteSpace !== CoreTypes.WhiteSpace.nowrap ? value : 1;
if (nativeTextViewProtected instanceof UITextView) {
nativeTextViewProtected.textContainer.maximumNumberOfLines = numberOfLines;