Using TypeScript with React Native
TypeScript is a language which extends JavaScript by adding type definitions, much like Flow. While React Native is built in Flow, it supports both TypeScript and Flow by default.
Getting Started with TypeScript
If you're starting a new project, there are a few different ways to get started. You can use the TypeScript template:
-npx react-native init MyTSProject --template react-native-template-typescript@6.2.0
+npx react-native init MyTSProject --template react-native-template-typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli
diff --git a/docs/typescript/index.html b/docs/typescript/index.html
index d7e0421b7f1..7e7e116be27 100644
--- a/docs/typescript/index.html
+++ b/docs/typescript/index.html
@@ -71,7 +71,7 @@
Using TypeScript with React Native
TypeScript is a language which extends JavaScript by adding type definitions, much like Flow. While React Native is built in Flow, it supports both TypeScript and Flow by default.
Getting Started with TypeScript
If you're starting a new project, there are a few different ways to get started. You can use the TypeScript template:
-npx react-native init MyTSProject --template react-native-template-typescript@6.2.0
+npx react-native init MyTSProject --template react-native-template-typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli