React Native Init Command Generating Typescript Project

2.5k Views Asked by At

It feels like a basic question but whenever I am trying to create a react native project using the command provided here It is always creating a typescript project for me instead of blank javascript project. How do I force it to create a blank javascript project what I am doing wrong?

Here is screenshot of App.js of the project that is being created The type Node I am guessing is of typescript I am not sure I am not very good in typescript

I have also tried making a project using native-base blank template but it is throwing an error

npx react-native init MyApp --template @native-base/react-native-template
1

There are 1 best solutions below

0
Mithila Karunarathna On

React Native defaults new applications to TypeScript, but JavaScript may still be used. Files with a .jsx extension are treated as JavaScript instead of TypeScript, and will not be typechecked. JavaScript modules may still be imported by TypeScript modules, along with the reverse.

https://reactnative.dev/docs/typescript#using-javascript-instead-of-typescript