react-native-wheel-scrollview-picker icon indicating copy to clipboard operation
react-native-wheel-scrollview-picker copied to clipboard

'ScrollPicker' cannot be used as a JSX component.

Open anniewey opened this issue 6 months ago • 2 comments

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)

anniewey avatar Jan 12 '24 08:01 anniewey

We're facing this issue too. Will follow to see if there is any resolution

GearoidCollins avatar Jan 12 '24 20:01 GearoidCollins

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.

tfuda avatar Feb 25 '24 15:02 tfuda