Check out example codes for "Expected 2 arguments, but got 1.ts(2554) core.d.ts(7888, 47): An argument for 'opts' was not provided.". It will help you in understanding the concepts better.

Code Example 1

This is because there is a synthax change in the new angular version.
@ViewChild("password", { static: true }) password: ElementRef;
@ViewChild("confirmPassword", { static: true }) confirmPassword: ElementRef;

Learn ReactJs, React Native from