Skip to content

Commit 64e346b

Browse files
committed
chore: remove ts-ignore
1 parent e6c5c45 commit 64e346b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/core/ui/core/view/index.android.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,10 +1609,11 @@ export class View extends ViewCommon {
16091609
return '';
16101610
}
16111611
[filterProperty.setNative](value: string) {
1612-
const nativeView = this.nativeViewProtected;
1613-
//@ts-ignore
1614-
if ('setFilter' in nativeView) {
1615-
// @ts-ignore
1612+
// LayoutBase, ImageView and StyleableTextView has the setFilter method implemented in the native view, so we need to check before call it.
1613+
const nativeView: globalAndroid.view.View & {
1614+
setFilter?: (value: string) => void;
1615+
} = this.nativeViewProtected;
1616+
if (typeof nativeView['setFilter'] === 'function') {
16161617
nativeView.setFilter(value);
16171618
}
16181619
}

0 commit comments

Comments
 (0)