Skip to content

Commit 3d923ff

Browse files
committed
fix(button): broken button color
1 parent 994b52a commit 3d923ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/button/button.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class Button extends ButtonBase {
187187
}
188188
[colorProperty.setNative](value) {
189189
const color = value instanceof Color ? value.android : value;
190-
super[colorProperty.setNative](color);
190+
super[colorProperty.setNative](value);
191191
this.nativeViewProtected.setIconTint(android.content.res.ColorStateList.valueOf(color));
192192
}
193193
}

src/button/button.ios.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class Button extends ButtonBase {
263263
}
264264
[colorProperty.setNative](value) {
265265
const color = value instanceof Color ? value.ios : value;
266-
super[colorProperty.setNative](color);
266+
super[colorProperty.setNative](value);
267267
this.nativeViewProtected.setImageTintColorForState(color, UIControlState.Normal);
268268
}
269269
}

0 commit comments

Comments
 (0)