Don’t want TypeScript template by default for react-native init.

Just need to specific the version 0.70 is the latest version without TypeScript as default template

npx react-native@0.70.0 init ProjectName --version 0.70.0

After creating project. you can run the project by change the path to your project folder and run this command

npx react-native run-android

If you would like to run on your physical android phone, just connect the phone via USB port to your laptop. You can test if the phone connected using this command. This will list all of devices and simulator connected.

adb devices

And then, you can run your app on your phone by using the command

npx react-native run-android

That’s it.

Happy coding!


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *