You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!](https://github.com/react-native-community/react-native-viewpager#preview)
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!](https://github.com/callstack/react-native-pager-view#preview)
For advanced usage please take a look into our [example project](https://github.com/callstack/react-native-viewpager/blob/master/example/src/BasicViewPagerExample.tsx)
130
+
For advanced usage please take a look into our [example project](https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx)
131
131
132
132
## API
133
133
134
134
|Prop|Description|Platform|
135
135
|-|:-----:|:---:|
136
136
|`initialPage`|Index of initial page that should be selected|both
137
-
|`scrollEnabled: boolean`|Should viewpager scroll, when scroll enabled|both
137
+
|`scrollEnabled: boolean`|Should pager view scroll, when scroll enabled|both
138
138
|`onPageScroll: (e: PageScrollEvent) => void`|Executed when transitioning between pages (ether because the animation for the requested page has changed or when the user is swiping/dragging between pages)|both
139
139
|`onPageScrollStateChanged: (e: PageScrollStateChangedEvent) => void`|Function called when the page scrolling state has changed|both
140
140
|`onPageSelected: (e: PageSelectedEvent) => void`|This callback will be called once the ViewPager finishes navigating to the selected page|both
@@ -153,12 +153,12 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
153
153
154
154
## Known Issues
155
155
156
-
-`flex:1` does not work for child views, please use `width:”100%”, height:”100%” `[instead](https://github.com/react-native-community/react-native-viewpager/issues/186#issuecomment-675320732)
156
+
-`flex:1` does not work for child views, please use `width:”100%”, height:”100%” `[instead](https://github.com/callstack/react-native-pager-view/issues/186#issuecomment-675320732)
157
157
158
158
-[iOS]: In case of `UIViewControllerHierarchyInconsistency` error, please use below fix:
0 commit comments