How to pass props to components in ionic react

You are missing the TypeScript interface for your ScanNew component.

interface ScanNewProps {
  formData: any;
}

const ScanNew: React.FC<ScanNewProps> = ({ formData }) => {
  ...
}
1 Like