Can .js files be used in a TypeScript project in VS Code? I recently cloned a React Native project from a GitHub repository and opened it in Visual Studio Code. However, when I added a tsconfig.json file to start using TypeScript, I encountered a lengthy list of errors. For instance, the drawer.js file (with ES6 features) showed:
https://i.sstatic.net/RpEfG.png
Below is my tsconfig.json file. Interestingly, removing this file resolves all errors reported: