Skip to content

Commit 51e2a11

Browse files
committed
docs: update docs with ts and image
1 parent 3f043e0 commit 51e2a11

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,25 @@ Code/Syntax highlighter for React Native. Inspired by [react-native-syntax-highl
44

55
## Installation
66

7+
#### NPM
78
```sh
8-
npm install react-native-code-highlighter
9-
or
10-
yarn add react-native-code-highlighter
9+
npm install react-native-code-highlighter react-syntax-highlighter
10+
```
11+
12+
#### Yarn
13+
```sh
14+
yarn add react-native-code-highlighter react-syntax-highlighter
15+
```
16+
17+
Additional for typescript
18+
#### NPM
19+
```sh
20+
npm install --save-dev @types/react-syntax-highlighter
21+
```
22+
23+
#### Yarn
24+
```sh
25+
yarn add -D @types/react-syntax-highlighter
1126
```
1227

1328
## Usage

0 commit comments

Comments
 (0)