44[ ![ Version] ( https://img.shields.io/npm/v/@reason-react-native/viewpager.svg )] ( https://www.npmjs.com/@reason-react-native/viewpager )
55[ ![ Chat] ( https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue )] ( https://reasonml-community.github.io/reason-react-native/discord/ )
66
7- [ ReasonML] ( https://reasonml.github.io ) /
8- [ BuckleScript] ( https://bucklescript.github.io ) bindings for
7+ [ ReScript] ( https://rescript-lang.org ) / [ Reason] ( https://reasonml.github.io ) bindings for
98[ ` @react-native-community/viewpager ` ] ( https://github.com/react-native-community/react-native-viewpager ) .
109
1110Exposed as ` ReactNativeViewPager ` module.
1211
13- ` @reason-react-native/viewpager ` X.y._ means it's compatible with
14- ` @react-native-community/viewpager ` X.y._
12+ ` @reason-react-native/viewpager ` X.y.\* means it's compatible with
13+ ` @react-native-community/viewpager ` X.y.\*
1514
1615## Installation
1716
@@ -27,7 +26,7 @@ yarn add @reason-react-native/viewpager
2726```
2827
2928` @reason-react-native/viewpager ` should be added to ` bs-dependencies ` in your
30- ` bsconfig.json ` . Something like
29+ ` bsconfig.json ` :
3130
3231``` diff
3332{
@@ -61,23 +60,16 @@ let app = () =>
6160 </SafeAreaView>;
6261```
6362
64- ### Types
65-
66- #### ` ReactNativeViewPager.t `
63+ #### ` ReactNativeViewPager ` props
6764
6865``` reason
6966~ref: ref=?,
7067~initialPage: int=?,
7168~scrollEnabled: bool=?,
72- ~onPageScroll: ReactNative.Event.syntheticEvent(scrollEvent) => unit=?,
73- ~onPageSelected: ReactNative.Event.syntheticEvent(selectedEvent) => unit=?,
74- ~onPageScrollStateChanged: ReactNative.Event.syntheticEvent(
75- scrollStateChangedEvent,
76- ) =>
77- unit
78- =?,
79- ~keyboardDismissMode: [@bs.string] [ | `none | [@bs.as "on-drag"] `onDrag]
80- =?,
69+ ~onPageScroll: PageScrollEvent.t => unit=?,
70+ ~onPageSelected: PageSelectedEvent.t => unit=?,
71+ ~onPageScrollStateChanged: PageScrollStateChangedEvent.t => unit=?,
72+ ~keyboardDismissMode: [@bs.string] [ | `none | [@bs.as "on-drag"] `onDrag]=?,
8173~pageMargin: int=?,
8274~onMoveShouldSetResponderCapture: ReactNative.Event.pressEvent => bool=?,
8375~style: ReactNative.Style.t=?,
0 commit comments