Skip to content

Commit fce58b1

Browse files
committed
fix(android): fix for now was breaking classes in spans
1 parent 8da7923 commit fce58b1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: src/label.android.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,13 @@ abstract class LabelBase extends View implements LabelViewDefinition {
221221
this.requestLayout();
222222
}
223223

224-
// eachChild(callback: (child: ViewBase) => boolean): void {
225-
// let text = this.formattedText;
226-
// if (text) {
227-
// callback(text);
228-
// }
229-
// }
224+
// without this spans class wont work :s
225+
eachChild(callback: (child: ViewBase) => boolean): void {
226+
let text = this.formattedText;
227+
if (text) {
228+
callback(text);
229+
}
230+
}
230231

231232
abstract _setNativeText(reset?: boolean):void;
232233

0 commit comments

Comments
 (0)