From ec691c98b27f3bd7f2749bdcd5b45fb7bedfe831 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Tue, 31 Mar 2020 00:40:18 +0900 Subject: [PATCH] docs: specify typescript template version --- website/versioned_docs/version-0.60/typescript.md | 3 ++- website/versioned_docs/version-0.61/typescript.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/website/versioned_docs/version-0.60/typescript.md b/website/versioned_docs/version-0.60/typescript.md index 97aa3983a42..f11ada2f240 100644 --- a/website/versioned_docs/version-0.60/typescript.md +++ b/website/versioned_docs/version-0.60/typescript.md @@ -11,6 +11,7 @@ original_id: typescript If you're starting a new project, there are a few different ways to get started. You can use the [TypeScript template][ts-template]: ```sh +# Template version is specifically for React Native 0.60 npx react-native init MyTSProject --template react-native-template-typescript@6.2.0 ``` @@ -33,7 +34,7 @@ ignite new MyTSProject 1. Add TypeScript and the types for React Native and Jest to your project. ```sh -yarn add --dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer +yarn add --dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer # or for npm npm install --save-dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer ``` diff --git a/website/versioned_docs/version-0.61/typescript.md b/website/versioned_docs/version-0.61/typescript.md index 9f28e243a87..61e3ce7bb9b 100644 --- a/website/versioned_docs/version-0.61/typescript.md +++ b/website/versioned_docs/version-0.61/typescript.md @@ -11,7 +11,8 @@ original_id: typescript If you're starting a new project, there are a few different ways to get started. You can use the [TypeScript template][ts-template]: ```sh -npx react-native init MyTSProject --template react-native-template-typescript +# Template version is specifically for React Native 0.61 +npx react-native init MyTSProject --template react-native-template-typescript@6.3.16 ``` You can use [Expo][expo] which has two TypeScript templates: