First, remove react-native-cli
npm uninstall -g react-native-cli
Second, install @react-native-community/cli
npm i -g @react-native-community/cli
Third, with this I should able to create react native project using typescript tempalate
npx react-native init MyApp --template react-native-template-typescript
Fourth, for run existing project or old react native project
npx react-native start
npx react-native run-android / npx react-native run-ios
Source https://github.com/react-native-community/react-native-template-typescript/issues/72
Answer from Ganda Rain Panjaitan on Stack OverflowThere is only a “Start a new React Native project with Expo”
Videos
» npm install @react-native-community/cli
» npm install react-native-cli
» npm install @react-native-community/cli-platform-android
No hate on Expo or anything. Expo is a great tool. I am using it to build my personal projects and the DX is pretty amazing. But forcing developers to either use Expo or use our "long-ass-community-cli-command" to spin up a boilerplate project is a mistake and I hate RN Core Team for this.
To see what version you have on your Mac(Window also can run that code.), run react-native -v and you should get something like this:
If you want to know what version your project is running, look in /node_modules/react-native/package.json and look for the version key:
The best practice for checking the react native environment information.
react-native info
which will give the information
React Native Environment Info:
System:
OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: (8) x64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Memory: 2.08 GB / 7.67 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 8.10.0 - /usr/bin/node
Yarn: 1.12.3 - /usr/bin/yarn
npm: 3.5.2 - /usr/bin/npm
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native: 0.57.8