I am using React Native Typescript. I want to use Hook. When I write the code in the 1st image, I get an error as in the 2nd image. When I don't type the hook in the 1st image, it's okay, but I have to. How can I solve the problem?
In the 3rd image my package.json file.