We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c5c45 commit 64e346bCopy full SHA for 64e346b
packages/core/ui/core/view/index.android.ts
@@ -1609,10 +1609,11 @@ export class View extends ViewCommon {
1609
return '';
1610
}
1611
[filterProperty.setNative](value: string) {
1612
- const nativeView = this.nativeViewProtected;
1613
- //@ts-ignore
1614
- if ('setFilter' in nativeView) {
1615
- // @ts-ignore
+ // LayoutBase, ImageView and StyleableTextView has the setFilter method implemented in the native view, so we need to check before call it.
+ const nativeView: globalAndroid.view.View & {
+ setFilter?: (value: string) => void;
+ } = this.nativeViewProtected;
1616
+ if (typeof nativeView['setFilter'] === 'function') {
1617
nativeView.setFilter(value);
1618
1619
0 commit comments