For the past day, I've been diving into typescript in react native. Setting up typescript in my react-native project has been a focus as I try to convert .tsx files into .js files within the realm of react native typescript.
I attempted to tweak the properties in tsconfig.json file, but unfortunately, no luck was found.
"compilerOptions": {
"target": "ESNEXT",
"module": "commonjs",
"lib": ["dom", "es2017"],
"jsx": "react",
"noEmit": true,
"watch": true,
"strict": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"exclude": [
"index.js",
"build",
"node_modules"
]
The desired outcome is for an automatic generation of the .js file through the utilization of .tsx files.