Skip to content

Commit aac3e14

Browse files
committed
docs: add Versions section to README
1 parent e555b8e commit aac3e14

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,35 @@
55
*Note: This module has been extracted from `react-native` as a part of the
66
[Lean Core](https://github.com/facebook/react-native/issues/23313) effort.*
77

8-
This component allows the user to swipe left and right through pages of data. Under the hood it is using the native [Android ViewPager](https://developer.android.com/reference/android/support/v4/view/ViewPager) and the [iOS UIPageViewController](https://developer.apple.com/documentation/uikit/uipageviewcontroller) implementations.
8+
This component allows the user to swipe left and right through pages of data. Under the hood it is using the native [Android ViewPager](https://developer.android.com/reference/android/support/v4/view/ViewPager) and the [iOS UIPageViewController](https://developer.apple.com/documentation/uikit/uipageviewcontroller) implementations. [See it in action!](README.md#preview)
99

1010
<img src="docs/viewpager-logo.png" alt="ViewPager" width="500" height="500">
1111

12+
## Versions
13+
14+
| 1.x | 2.x |
15+
| ---------------- | ------------- |
16+
| | iOS support |
17+
| Android support | Android support |
18+
1219
## Getting started
1320

1421
`yarn add @react-native-community/viewpager`
1522

1623
## Linking
1724

25+
### >= 0.60
26+
27+
Autolinking will just do the job.
28+
29+
### < 0.60
30+
31+
#### Mostly automatic
32+
1833
`react-native link @react-native-community/viewpager`
1934

35+
#### Manual linking
36+
2037
<details>
2138
<summary>Manually link the library on iOS</summary>
2239
</br>

0 commit comments

Comments
 (0)