I'm using import { SearchBar } from 'react-native-elements';
It has a onChangeText function with the type of onChangeText: () => any;
I do onChangeText={(text: string) => console.log("text", text)} and it's giving me the ts error:
Type '(text: string) => void' is not assignable to type '((text: string) => void) & ((text: string) => void) & (() => any) & (() => any) & (() => any) & ((text: string) => void) & (() => any) & (() => any) & (() => any)'.
Type '(text: string) => void' is not assignable to type '() => any'
Why and what's the correct way to do this?