1
- # ` @reason -react-native/safe-area-context `
1
+ # ` @rescript -react-native/safe-area-context `
2
2
3
- [ ![ Build Status] ( https://github.com/reason -react-native/safe-area-context/workflows/Build/badge.svg )] ( https://github.com/reason -react-native/safe-area-context/actions )
4
- [ ![ Version] ( https://img.shields.io/npm/v/@reason -react-native/safe-area-context.svg )] ( https://www.npmjs.com/@reason -react-native/safe-area-context )
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/safe-area-context/workflows/Build/badge.svg )] ( https://github.com/rescript -react-native/safe-area-context/actions )
4
+ [ ![ Version] ( https://img.shields.io/npm/v/@rescript -react-native/safe-area-context.svg )] ( https://www.npmjs.com/@rescript -react-native/safe-area-context )
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-safe-area-context ` ] ( https://github.com/th3rdwave/react-native-safe-area-context ) .
9
9
10
10
Exposed as ` ReactNativeSafeAreaContext ` module.
11
11
12
- ` @reason -react-native/safe-area-context ` X.y.\* means it's compatible with
12
+ ` @rescript -react-native/safe-area-context ` X.y.\* means it's compatible with
13
13
` react-native-safe-area-context ` X.y.\*
14
14
15
15
## Installation
@@ -20,22 +20,22 @@ 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/safe-area-context
23
+ npm install @rescript -react-native/safe-area-context
24
24
# or
25
- yarn add @reason -react-native/safe-area-context
25
+ yarn add @rescript -react-native/safe-area-context
26
26
```
27
27
28
- ` @reason -react-native/safe-area-context ` should be added to ` bs-dependencies ` in
28
+ ` @rescript -react-native/safe-area-context ` should be added to ` bs-dependencies ` in
29
29
your ` 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/safe-area-context"
38
+ + "@rescript -react-native/safe-area-context"
39
39
],
40
40
//...
41
41
}
@@ -47,7 +47,7 @@ your `bsconfig.json`:
47
47
48
48
#### ` ReactNativeSafeAreaContext.insets `
49
49
50
- ``` reason
50
+ ``` rescript
51
51
type insets = {
52
52
top: float,
53
53
bottom: float,
@@ -58,7 +58,7 @@ type insets = {
58
58
59
59
#### ` ReactNativeSafeAreaContext.frame `
60
60
61
- ``` reason
61
+ ``` rescript
62
62
type frame = {
63
63
x: float,
64
64
y: float,
@@ -69,7 +69,7 @@ type frame = {
69
69
70
70
#### ` ReactNativeSafeAreaContext.metrics `
71
71
72
- ``` reason
72
+ ``` rescript
73
73
type metrics = {
74
74
insets,
75
75
frame,
@@ -86,7 +86,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#optimization>
86
86
87
87
#### ` <ReactNativeSafeAreaContext.SafeAreaProvider> `
88
88
89
- ``` reason
89
+ ``` rescript
90
90
open ReactNative;
91
91
open ReactNativeSafeAreaContext;
92
92
@@ -104,7 +104,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#web-ssr> for
104
104
105
105
#### ` ReactNativeSafeAreaContext.useSafeAreaInsets(): insets `
106
106
107
- ``` reason
107
+ ``` rescript
108
108
open ReactNative;
109
109
open ReactNativeSafeAreaContext;
110
110
@@ -117,7 +117,7 @@ let make = () => {
117
117
118
118
#### ` ReactNativeSafeAreaContext.useSafeAreaFrame(): frame `
119
119
120
- ``` reason
120
+ ``` rescript
121
121
open ReactNative;
122
122
open ReactNativeSafeAreaContext;
123
123
@@ -130,7 +130,7 @@ let make = () => {
130
130
131
131
#### ` <ReactNativeSafeAreaContext.SafeAreaInsetsContext.Consumer> `
132
132
133
- ``` reason
133
+ ``` rescript
134
134
open ReactNative;
135
135
open ReactNativeSafeAreaContext;
136
136
@@ -145,7 +145,7 @@ let make = () => {
145
145
146
146
#### ` <ReactNativeSafeAreaContext.SafeAreaView> `
147
147
148
- ``` reason
148
+ ``` rescript
149
149
open ReactNative;
150
150
open ReactNativeSafeAreaContext;
151
151
@@ -169,11 +169,11 @@ releases.
169
169
## Contribute
170
170
171
171
Read the
172
- [ contribution guidelines] ( https://github.com/reason -react-native/.github/blob/master/CONTRIBUTING.md )
172
+ [ contribution guidelines] ( https://github.com/rescript -react-native/.github/blob/master/CONTRIBUTING.md )
173
173
before contributing.
174
174
175
175
## Code of Conduct
176
176
177
177
We want this community to be friendly and respectful to each other. Please read
178
- [ our full code of conduct] ( https://github.com/reason -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
178
+ [ our full code of conduct] ( https://github.com/rescript -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
179
179
so that you can understand what actions will and will not be tolerated.
0 commit comments