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
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ For advanced usage please take a look into our [example project](https://github.
163
163
|`offscreenPageLimit: number`| Set the number of pages that should be retained to either side of the currently visible page(s). Pages beyond this limit will be recreated from the adapter when needed. Defaults to RecyclerView's caching strategy. The given value must either be larger than 0. | Android |
164
164
|`overdrag: boolean`| Allows for overscrolling after reaching the end or very beginning or pages. Defaults to `false`| iOS |
165
165
|`layoutDirection: ('ltr' / 'rtl' / 'locale')`| Specifies layout direction. Use `ltr` or `rtl` to set explicitly or `locale` to deduce from the default language script of a locale. Defaults to `locale`| both |
166
-
|`allowNavFullscreenGesture: boolean`| Allows navigation swipe-back gestures to pass through when PagerView is at index 0. If `overdrag` is set to `true`, it will have higher priority. Defaults to `false`| iOS |
166
+
|`allowNavigationBackGesture: boolean`| Allows navigation swipe-back gestures to pass through when PagerView is at index 0. If `overdrag` is set to `true`, it will have higher priority. Defaults to `false`| iOS |
The `usePagerView` hook is a convenient way to manage the state and control the behavior of the `<PagerView />` component. It provides functions and variables to interact with the pager, such as navigating between pages and enabling/disabling scrolling.
247
248
248
249
Below is an example of how to use the usePager hook:
@@ -295,7 +296,8 @@ export function PagerHookExample() {
295
296
);
296
297
}
297
298
```
298
-
### How the Example Works:
299
+
300
+
### How the Example Works
299
301
300
302
-**Pager View Setup**: The `AnimatedPagerView` component wraps `PagerView` in React Native's animation capabilities. It accepts multiple props from the `usePager` hook, such as `overdragEnabled`, `scrollEnabled`, `onPageScroll`, `onPageSelected`, and others to manage pager behavior.
301
303
@@ -305,7 +307,6 @@ export function PagerHookExample() {
305
307
306
308
The `usePager` hook makes it easy to handle pagination with dynamic views. This example demonstrates how to set up a simple paginated interface where users can scroll through pages, interact with page elements, and control the pager with external navigation.
0 commit comments