Skip to content

Commit 6d06106

Browse files
author
farfromrefuge
committed
chore: cleanup
1 parent f0752c5 commit 6d06106

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/textfield/textfield.android.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export class TextField extends TextFieldBase {
196196
const nColor = getColorStateList(color);
197197
this.layoutView.setErrorTextColor(nColor);
198198
// TODO: find why it fails in cli build
199-
//@ts-ignore
200199
this.layoutView.setBoxStrokeErrorColor(nColor);
201200
}
202201

@@ -223,26 +222,19 @@ export class TextField extends TextFieldBase {
223222
this.layoutView.setHintEnabled(!!value);
224223
}
225224
[strokeWidthProperty.setNative](value: CoreTypes.LengthType) {
226-
// TODO: find why it fails in cli build
227-
//@ts-ignore
228225
this.layoutView.setBoxStrokeWidth(Length.toDevicePixels(value, 0));
229226
}
230227

231228
[strokeWidthFocusedProperty.setNative](value: CoreTypes.LengthType) {
232-
// TODO: find why it fails in cli build
233-
//@ts-ignore
234229
this.layoutView.setBoxStrokeWidthFocused(Length.toDevicePixels(value, 0));
235230
}
236231

237232
[strokeColorProperty.setNative](value: Color | string) {
238233
const color = value ? (value instanceof Color ? value.android : new Color(value).android) : null;
239-
// TODO: find why it fails in cli build
240-
//@ts-ignore
241234
if (this.layoutView.setBoxStrokeColorStateList) {
242235
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
243236
const disabledColor = this.strokeDisabledColor instanceof Color ? this.strokeDisabledColor.android : undefined;
244237
const colorStateList = getFullColorStateList(color, inactiveColor, disabledColor);
245-
//@ts-ignore
246238
this.layoutView.setBoxStrokeColorStateList(colorStateList);
247239
} else {
248240
this.layoutView.setBoxStrokeColor(color);
@@ -251,27 +243,20 @@ export class TextField extends TextFieldBase {
251243

252244
[strokeInactiveColorProperty.setNative](value: Color | string) {
253245
const color = value ? (value instanceof Color ? value.android : new Color(value).android) : null;
254-
255-
// TODO: find why it fails in cli build
256-
//@ts-ignore
257246
if (this.layoutView.setBoxStrokeColorStateList) {
258247
const activeColor = this.strokeColor instanceof Color ? this.strokeColor.android : this.layoutView.getBoxStrokeColor();
259248
const disabledColor = this.strokeDisabledColor instanceof Color ? this.strokeDisabledColor.android : undefined;
260249
const colorStateList = getFullColorStateList(activeColor, color, disabledColor);
261-
//@ts-ignore
262250
this.layoutView.setBoxStrokeColorStateList(colorStateList);
263251
}
264252
}
265253

266254
[strokeDisabledColorProperty.setNative](value: Color | string) {
267255
const color = value ? (value instanceof Color ? value.android : new Color(value).android) : null;
268-
// TODO: find why it fails in cli build
269-
//@ts-ignore
270256
if (this.layoutView.setBoxStrokeColorStateList) {
271257
const activeColor = this.strokeColor instanceof Color ? this.strokeColor.android : this.layoutView.getBoxStrokeColor();
272258
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
273259
const colorStateList = getFullColorStateList(activeColor, inactiveColor, color);
274-
//@ts-ignore
275260
this.layoutView.setBoxStrokeColorStateList(colorStateList);
276261
}
277262
}

src/textview/textview.android.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,42 +217,33 @@ export class TextView extends TextViewBase {
217217
[strokeInactiveColorProperty.setNative](value: Color) {
218218
const color = value instanceof Color ? value.android : value;
219219
const layoutView = this.layoutView;
220-
// TODO: find why it fails in cli build
221-
//@ts-ignore
222220
if (layoutView.setBoxStrokeColorStateList) {
223221
const activeColor = this.strokeColor instanceof Color ? this.strokeColor.android : layoutView.getBoxStrokeColor();
224222
const disabledColor = this.strokeDisabledColor instanceof Color ? this.strokeDisabledColor.android : undefined;
225223
const colorStateList = getFullColorStateList(activeColor, color, disabledColor);
226-
//@ts-ignore
227224
layoutView.setBoxStrokeColorStateList(colorStateList);
228225
}
229226
}
230227

231228
[strokeDisabledColorProperty.setNative](value: Color) {
232229
const color = value instanceof Color ? value.android : value;
233230
const layoutView = this.layoutView;
234-
// TODO: find why it fails in cli build
235-
//@ts-ignore
236231
if (layoutView.setBoxStrokeColorStateList) {
237232
const activeColor = this.strokeColor instanceof Color ? this.strokeColor.android : layoutView.getBoxStrokeColor();
238233
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
239234
const colorStateList = getFullColorStateList(activeColor, inactiveColor, color);
240-
//@ts-ignore
241235
layoutView.setBoxStrokeColorStateList(colorStateList);
242236
}
243237
}
244238

245239
[strokeColorProperty.setNative](value: Color) {
246240
const color = value instanceof Color ? value.android : value;
247241
const layoutView = this.layoutView;
248-
// TODO: find why it fails in cli build
249-
//@ts-ignore
250242
if (layoutView.setBoxStrokeColorStateList) {
251243
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
252244
const disabledColor = this.strokeDisabledColor instanceof Color ? this.strokeDisabledColor.android : undefined;
253245
const colorStateList = getFullColorStateList(color, inactiveColor, disabledColor);
254246
if (colorStateList) {
255-
//@ts-ignore
256247
layoutView.setBoxStrokeColorStateList(colorStateList);
257248
}
258249
} else {

0 commit comments

Comments
 (0)