We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc5383 commit 6ded2e7Copy full SHA for 6ded2e7
1 file changed
packages/core/ui/text-base/index.android.ts
@@ -421,7 +421,11 @@ export class TextBase extends TextBaseCommon {
421
[fontSizeProperty.getDefault](): { nativeSize: number } {
422
return { nativeSize: this.nativeTextViewProtected.getTextSize() };
423
}
424
- [fontSizeProperty.setNative](value: number | { nativeSize: number }) {
+ [fontSizeProperty.setNative](value: number | { nativeSize: number } | null | undefined) {
425
+ if (value == null) {
426
+ return;
427
+ }
428
+
429
if (!this.formattedText || typeof value !== 'number') {
430
if (typeof value === 'number') {
431
this.nativeTextViewProtected.setTextSize(value);
0 commit comments