Skip to content

Commit 9241a0d

Browse files
committed
fix(android): fix for @nativescript-community/text override and light spans
1 parent b26cf92 commit 9241a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/label.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ abstract class LabelBase extends View implements LabelViewDefinition {
262262
}
263263

264264
public _addChildFromBuilder(name: string, value: any): void {
265-
if (name === Span.name) {
265+
if (name === Span.name || value.constructor.isSpan) {
266266
if (!this.formattedText) {
267267
let formattedText: FormattedString;
268268
if (overrideSpanAndFormattedStringEnabled) {

0 commit comments

Comments
 (0)