Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Updated README with instructions for setting up with NPM #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ The following commands will:
Okay let's go ahead and run these.

```sh
# With Yarn
yarn add --dev typescript
yarn add --dev react-native-typescript-transformer
yarn tsc --init --pretty --jsx react
touch rn-cli.config.js
yarn add --dev @types/react @types/react-native

# With NPM
npm install --save-dev typescript
npm install --save-dev react-native-typescript-transformer
./node_modules/typescript/bin/tsc --init --pretty --jsx react
touch rn-cli.config.js
npm install --save-dev @types/react @types/react-native
```

The `tsconfig.json` file contains all the settings for the TypeScript compile.
Expand Down