1

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? enter image description here

juliomalves
  • 42,130
  • 20
  • 150
  • 146
pasindu
  • 11
  • 3

0 Answers0