Showing the below error message on all components, react-native init created a functional component template and showing errors that happen after converted to class components.
JSX element class does not support attributes because it does not have a 'props' property.ts(2607) 'View' cannot be used as a JSX component. Its instance type 'View' is not a valid JSX element. Type 'View' is missing the following properties from type 'ElementClass': render, context, setState, forceUpdate, and 2 more.ts(2786)
Can anyone help with this problem?
2.1m questions
2.1m answers
60 comments
57.0k users