Skip to content

Commit 49d13ec

Browse files
committed
update readme
1 parent 34d1263 commit 49d13ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# React-Native-ViewPager
2+
[![npm](https://img.shields.io/npm/v/rn-viewpager.svg?style=plastic)](https://npmjs.org/package/rn-viewpager) [![npm](https://img.shields.io/npm/dm/rn-viewpager.svg?style=plastic)](https://npmjs.org/package/rn-viewpager) [![npm](https://img.shields.io/npm/dt/rn-viewpager.svg?style=plastic)](https://npmjs.org/package/rn-viewpager)
3+
24
ViewPager and Indicator component for react-native on both android and ios. ViewPager's props is the same as [ViewPagerAndroid](https://facebook.github.io/react-native/docs/viewpagerandroid.html#content).
35

46
<p>
@@ -12,7 +14,6 @@ ViewPager and Indicator component for react-native on both android and ios. View
1214

1315

1416
## Preview
15-
1617
<p>
1718
<img src="./imgs/dotIndicator.gif" width="256" />
1819
<img src="./imgs/titleIndicator.gif" width="256" />
@@ -24,8 +25,7 @@ ViewPager and Indicator component for react-native on both android and ios. View
2425
```
2526
cd demo/
2627
npm install
27-
react-native run-android
28-
28+
react-native run-ios
2929
```
3030

3131
## Usage
@@ -35,7 +35,7 @@ react-native run-android
3535

3636
### Integrate into your app:
3737

38-
```
38+
```jsx
3939
import React, {Component, StyleSheet, View, Text} from 'react-native';
4040
import {IndicatorViewPager, PagerTitleIndicator, PagerDotIndicator} from 'rn-viewpager';
4141

0 commit comments

Comments
 (0)