1
- # ` @reason -react-native/viewpager `
1
+ # ` @rescript -react-native/viewpager `
2
2
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 / )
6
6
7
- [ ReScript] ( https://rescript-lang.org ) / [ Reason ] ( https://reasonml.github.io ) bindings for
7
+ [ ReScript] ( https://rescript-lang.org ) bindings for
8
8
[ ` @react-native-community/viewpager ` ] ( https://github.com/callstack/react-native-viewpager ) .
9
9
10
10
Exposed as ` ReactNativeViewPager ` module.
11
11
12
- ` @reason -react-native/viewpager ` X.y.\* means it's compatible with
12
+ ` @rescript -react-native/viewpager ` X.y.\* means it's compatible with
13
13
` @react-native-community/viewpager ` X.y.\*
14
14
15
15
## Installation
@@ -20,30 +20,30 @@ is properly installed & configured by following their installation instructions,
20
20
you can install the bindings:
21
21
22
22
``` console
23
- npm install @reason -react-native/viewpager
23
+ npm install @rescript -react-native/viewpager
24
24
# or
25
- yarn add @reason -react-native/viewpager
25
+ yarn add @rescript -react-native/viewpager
26
26
```
27
27
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
29
29
` bsconfig.json ` :
30
30
31
31
``` diff
32
32
{
33
33
//...
34
34
"bs-dependencies": [
35
- "reason- react",
36
- "reason -react-native",
35
+ "@rescript/ react",
36
+ "rescript -react-native",
37
37
// ...
38
- + "@reason -react-native/viewpager"
38
+ + "@rescript -react-native/viewpager"
39
39
],
40
40
//...
41
41
}
42
42
```
43
43
44
44
## Usage
45
45
46
- ``` reason
46
+ ``` rescript
47
47
[@react.component]
48
48
let app = () =>
49
49
<SafeAreaView style={styles##body}>
@@ -62,7 +62,7 @@ let app = () =>
62
62
63
63
#### ` ReactNativeViewPager ` props
64
64
65
- ``` reason
65
+ ``` rescript
66
66
~ref: ref=?,
67
67
~initialPage: int=?,
68
68
~scrollEnabled: bool=?,
@@ -83,13 +83,13 @@ let app = () =>
83
83
84
84
#### ` ReactNativeViewPager.setPage `
85
85
86
- ``` reason
86
+ ``` rescript
87
87
setPage: (T.t, int) => unit = "setPage";
88
88
```
89
89
90
90
#### ` ReactNativeViewPager.setPage `
91
91
92
- ``` reason
92
+ ``` rescript
93
93
setPageWithoutAnimation: (T.t, int) => unit =
94
94
"setPageWithoutAnimation";
95
95
```
@@ -106,11 +106,11 @@ releases.
106
106
## Contribute
107
107
108
108
Read 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 )
110
110
before contributing.
111
111
112
112
## Code of Conduct
113
113
114
114
We 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 )
116
116
so that you can understand what actions will and will not be tolerated.
0 commit comments