Skip to content

Commit e555b8e

Browse files
committed
docs: add ViewPager logo and more gifs (#60)
1 parent 60ad96a commit e555b8e

File tree

9 files changed

+18
-2
lines changed

9 files changed

+18
-2
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
babel.config.js
44
.idea
55
android/build
6-
/viewpager.gif
6+
/docs

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
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.
99

10-
![](viewpager.gif)
10+
<img src="docs/viewpager-logo.png" alt="ViewPager" width="500" height="500">
1111

1212
## Getting started
1313

@@ -109,3 +109,19 @@ const styles = StyleSheet.create({
109109
|`keyboardDismissMode: ('none' / 'on-drag')`| Determines whether the keyboard gets dismissed in response to a drag|both
110110
|`orientation: Orientation`|Set `horizontal` or `vertical` scrolling orientation|iOS
111111
|`transitionStyle: TransitionStyle`|Use `scroll` or `curl` to change transition style|iOS
112+
113+
## Preview
114+
115+
### Android
116+
117+
<img src="docs/android-viewpager.gif" alt="ViewPager" width="325">
118+
119+
### iOS
120+
121+
horizontal - scroll | horizontal - curl
122+
:-------------------------:|:-------------------------:
123+
<img src="docs/ios-viewpager-scroll.gif" alt="ViewPager" width="325"> | <img src="docs/ios-viewpager-curl.gif" alt="ViewPager" width="325">
124+
125+
vertical - scroll | vertical - curl
126+
:-------------------------:|:-------------------------:
127+
<img src="docs/ios-viewpager-vertical.gif" alt="ViewPager" width="325"> | <img src="docs/ios-viewpager-vertical-curl.gif" alt="ViewPager" width="325">

docs/android-viewpager.gif

2.1 MB
Loading

docs/ios-viewpager-curl.gif

5.17 MB
Loading

docs/ios-viewpager-scroll.gif

4.51 MB
Loading
3.36 MB
Loading

docs/ios-viewpager-vertical.gif

2.83 MB
Loading

docs/viewpager-logo.png

6.18 KB
Loading

viewpager.gif

-3.61 MB
Binary file not shown.

0 commit comments

Comments
 (0)