react-native-wheel-scrollview-picker
react-native-wheel-scrollview-picker copied to clipboard
'ScrollPicker' cannot be used as a JSX component.
Getting typescript error but picker is working fine
'ScrollPicker' cannot be used as a JSX component.
Its return type 'ReactNode' is not a valid JSX element.
Type 'undefined' is not assignable to type 'Element | null'.ts(2786)
We're facing this issue too. Will follow to see if there is any resolution
Came across this article that explains this Typescript error: https://www.totaltypescript.com/jsx-element-vs-react-reactnode#whenshouldntwe-usereactreactnode. The article implies this may in fact be fixed in Typescript 5.1.