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:
-react-native init MyTSProject --template typescript
+npx react-native init MyApp --template react-native-template-typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli
diff --git a/docs/next/typescript/index.html b/docs/next/typescript/index.html
index 030291f77ae..f8727b49d91 100644
--- a/docs/next/typescript/index.html
+++ b/docs/next/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:
-react-native init MyTSProject --template typescript
+npx react-native init MyApp --template react-native-template-typescript
You can use Expo which has two TypeScript templates:
npm install -g expo-cli