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
+react-native init MyTSProject --template typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli
diff --git a/docs/0.60/typescript/index.html b/docs/0.60/typescript/index.html
index 9ac3e28e502..635f84f3fdd 100644
--- a/docs/0.60/typescript/index.html
+++ b/docs/0.60/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
+react-native init MyTSProject --template typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli
diff --git a/docs/typescript.html b/docs/typescript.html
index 1747f590733..6d0868a9317 100644
--- a/docs/typescript.html
+++ b/docs/typescript.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
+react-native init MyTSProject --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 1747f590733..6d0868a9317 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
+react-native init MyTSProject --template typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli