chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-09 23:43:28 -07:00
parent 0ae8dba962
commit 8100cf7089
89 changed files with 493 additions and 704 deletions

View File

@@ -10,7 +10,7 @@ import { colorProperty, fontSizeProperty, fontInternalProperty, paddingLeftPrope
import { FormattedString } from './formatted-string';
import { Span } from './span';
import { layout } from '../../utils';
import { isString } from '../../utils/types';
import { isString, isNullOrUndefined } from '../../utils/types';
export * from './text-base-common';
@@ -40,7 +40,7 @@ function initializeTextTransformation(): void {
return createSpannableStringBuilder(formattedText, (<android.widget.TextView>view).getTextSize());
} else {
const text = this.textBase.text;
const stringValue = text === null || text === undefined ? '' : text.toString();
const stringValue = isNullOrUndefined(text) ? '' : text.toString();
return getTransformedText(stringValue, this.textBase.textTransform);
}