Skip to content

Commit feecfd1

Browse files
authored
Add Typescript usage to Readme.
1 parent ee8bde6 commit feecfd1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ Swiper component for React Native featuring **previews**, **multiple layouts**,
6767
$ npm install --save react-native-snap-carousel
6868
```
6969

70+
If you're using Typescript you should also install type definitions:
71+
```bash
72+
$ npm install --save @types/react-native-snap-carousel
73+
```
74+
75+
7076
```javascript
7177
import Carousel from 'react-native-snap-carousel';
7278

0 commit comments

Comments
 (0)