1// ================ react-native-template-typescript =====================
2########### This template only works with the new CLI.###############
3
4first check if you have right react-native-cli intall
5
6check via
7)=====> react-native-cli -v
8
9if exixst uninstall
10
11)=====> npm uninstall -g react-native-cli
12)=====> yarn global remove react-native-cli
13
14now install again.
15)=====> npm i -g @react-native-community/cli
16
17===================if still not work now try this commant
18)=====> npx --ignore-existing react-native init MyApp --template react-native-template-typescript
1There seems to be quite some confusion about the legacy CLI.
2This template only works with the new CLI.
3Make sure you have uninstalled the legacy react-native-cli first (npm uninstall -g react-native-cli),
4for the below command to work.
5If you wish to not use npx
6you can also install the new CLI globally (npm i -g @react-native-community/cli or yarn global add @react-native-community/cli).