Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Typescript error for Icon in react native

$
0
0

when using like so: -<RNPickerSelect...Icon={() => {return <Ionienter code herecons ... />;}}/>

============Giving This Error in console and file also. =================

function(): JSX.ElementNo overload matches this call.Overload 1 of 2, '(props: PickerSelectProps | Readonly): Picker', gave the following error.Type '() => JSX.Element' is not assignable to type 'ReactNode'.Overload 2 of 2, '(props: PickerSelectProps, context: any): Picker', gave the following error.Type '() => JSX.Element' is not assignable to type 'ReactNode'.ts(2769)SelectTime.tsx(116, 18): Did you mean to call this expression?


Viewing all articles
Browse latest Browse all 6287

Trending Articles