Unble to to resolve error onChangeText

i got this problem

onChangeText={text => this.searchFilterFunction(text)}

Type ‘(text: string) => void’ is not assignable to type ‘((text: string) => void) & ((text: string) => void) & (() => any) & (() => any) & (() => any)’.
Type ‘(text: string) => void’ is not assignable to type ‘() => any’.

The expected type comes from property ‘onChangeText’ which is declared here on type ‘IntrinsicAttributes & TextInputProps & RefAttributes & { platform: “default” | “ios” | “android”; … 13 more …; onCancel?(): void; } & … 6 more … & Partial<…>’

similar type of problem i face in this case two
keyExtractor?: ((item: ItemT, index: number) => string) | undefined;

if i put in expo stack code works properly