Skip to content

Commit a33f617

Browse files
committed
Convert values into native string
1 parent 1537cb7 commit a33f617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checkbox.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Style,
1010
booleanConverter
1111
} from "tns-core-modules/ui/core/view";
12-
declare const android: any;
12+
declare const android: any, java: any;
1313

1414
export const checkedProperty = new Property<CheckBox, boolean>({
1515
name: "checked",
@@ -115,7 +115,7 @@ export class CheckBox extends View implements CheckBoxInterface {
115115
return "";
116116
}
117117
[textProperty.setNative](value: string) {
118-
this.nativeView.setText(value);
118+
this.nativeView.setText(java.lang.String.valueOf(value));
119119
}
120120

121121
get fillColor(): string {

0 commit comments

Comments
 (0)