Closed Lelelo1 closed 5 years ago
The NativeScript component props all has to be set as optional props:
Getting new issues when setting props on StackLayout and ScrollView.
I need to set the return type of Reactified
to React.ComponentType
. However doing so I can't return the proper react.forwardRef
that fits the description - getting typescript error. This seems to be due to how ExtraProps
is conditionally set up
The jsx is type error free with Reactified return type of React.ComponentType<Partial<T> & ExtraProps<T>>
. But there is a type error when using conditional generically assigned props in Reactified: https://stackoverflow.com/questions/58281936/react-componenttype-with-generic-conditional-props - when trying to return React.forwardedRef
;
VSCode warning complaints when used in jsx:
...while all props set seems to function
export const MyContentView = JSX<ContentView>(new ContentView());