1- # ` @reason -react-native/viewpager `
1+ # ` @rescript -react-native/viewpager `
22
3- [ ![ Build Status] ( https://github.com/reason -react-native/viewpager/workflows/Build/badge.svg )] ( https://github.com/reason -react-native/viewpager/actions )
4- [ ![ Version] ( https://img.shields.io/npm/v/@reason -react-native/viewpager.svg )] ( https://www.npmjs.com/@reason -react-native/viewpager )
5- [ ![ Chat ] ( https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue )] ( https://reasonml-community.github.io/reason-react-native/discord / )
3+ [ ![ Build Status] ( https://github.com/rescript -react-native/viewpager/workflows/Build/badge.svg )] ( https://github.com/rescript -react-native/viewpager/actions )
4+ [ ![ Version] ( https://img.shields.io/npm/v/@rescript -react-native/viewpager.svg )] ( https://www.npmjs.com/@rescript -react-native/viewpager )
5+ [ ![ ReScript Forum ] ( https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org )] ( https://forum.rescript-lang.org / )
66
7- [ ReScript] ( https://rescript-lang.org ) / [ Reason ] ( https://reasonml.github.io ) bindings for
7+ [ ReScript] ( https://rescript-lang.org ) bindings for
88[ ` @react-native-community/viewpager ` ] ( https://github.com/callstack/react-native-viewpager ) .
99
1010Exposed as ` ReactNativeViewPager ` module.
1111
12- ` @reason -react-native/viewpager ` X.y.\* means it's compatible with
12+ ` @rescript -react-native/viewpager ` X.y.\* means it's compatible with
1313` @react-native-community/viewpager ` X.y.\*
1414
1515## Installation
@@ -20,30 +20,30 @@ is properly installed & configured by following their installation instructions,
2020you can install the bindings:
2121
2222``` console
23- npm install @reason -react-native/viewpager
23+ npm install @rescript -react-native/viewpager
2424# or
25- yarn add @reason -react-native/viewpager
25+ yarn add @rescript -react-native/viewpager
2626```
2727
28- ` @reason -react-native/viewpager ` should be added to ` bs-dependencies ` in your
28+ ` @rescript -react-native/viewpager ` should be added to ` bs-dependencies ` in your
2929` bsconfig.json ` :
3030
3131``` diff
3232{
3333 //...
3434 "bs-dependencies": [
35- "reason- react",
36- "reason -react-native",
35+ "@rescript/ react",
36+ "rescript -react-native",
3737 // ...
38- + "@reason -react-native/viewpager"
38+ + "@rescript -react-native/viewpager"
3939 ],
4040 //...
4141}
4242```
4343
4444## Usage
4545
46- ``` reason
46+ ``` rescript
4747[@react.component]
4848let app = () =>
4949 <SafeAreaView style={styles##body}>
@@ -62,7 +62,7 @@ let app = () =>
6262
6363#### ` ReactNativeViewPager ` props
6464
65- ``` reason
65+ ``` rescript
6666~ref: ref=?,
6767~initialPage: int=?,
6868~scrollEnabled: bool=?,
@@ -83,13 +83,13 @@ let app = () =>
8383
8484#### ` ReactNativeViewPager.setPage `
8585
86- ``` reason
86+ ``` rescript
8787setPage: (T.t, int) => unit = "setPage";
8888```
8989
9090#### ` ReactNativeViewPager.setPage `
9191
92- ``` reason
92+ ``` rescript
9393setPageWithoutAnimation: (T.t, int) => unit =
9494 "setPageWithoutAnimation";
9595```
@@ -106,11 +106,11 @@ releases.
106106## Contribute
107107
108108Read the
109- [ contribution guidelines] ( https://github.com/reason -react-native/.github/blob/master/CONTRIBUTING.md )
109+ [ contribution guidelines] ( https://github.com/rescript -react-native/.github/blob/master/CONTRIBUTING.md )
110110before contributing.
111111
112112## Code of Conduct
113113
114114We want this community to be friendly and respectful to each other. Please read
115- [ our full code of conduct] ( https://github.com/reason -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
115+ [ our full code of conduct] ( https://github.com/rescript -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
116116so that you can understand what actions will and will not be tolerated.
0 commit comments