Skip to content

Commit

Permalink
Add Typescript usage to Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
radko93 authored Oct 29, 2019
1 parent ee8bde6 commit feecfd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ Swiper component for React Native featuring **previews**, **multiple layouts**,
$ npm install --save react-native-snap-carousel
```

If you're using Typescript you should also install type definitions:
```bash
$ npm install --save @types/react-native-snap-carousel
```


```javascript
import Carousel from 'react-native-snap-carousel';

Expand Down

0 comments on commit feecfd1

Please sign in to comment.