Recently react-native's version got updated and when I try to create new project using npx react-native init MyProject
command it generates project in TypeScript by default.
How do I create it in JavaScript?
I tried making project with:-
npx create-react-native-app
npx create-expo-app
- Using
ignite-cli
npx react-native init --template react-native-template-blank
The first 2 commands creating expo bare-project. The third command is generating typescript and The fourth command is throwing and Error:-
error Error: Command failed: npm install --save --save-exact react-native-template-blank
npm ERR! code ENOVERSIONS
npm ERR! No versions available for react-native-template-blank