1- # ` @reason -react-native/safe-area-context `
1+ # ` @rescript -react-native/safe-area-context `
22
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 / )
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-safe-area-context ` ] ( https://github.com/th3rdwave/react-native-safe-area-context ) .
99
1010Exposed as ` ReactNativeSafeAreaContext ` module.
1111
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
1313` react-native-safe-area-context ` X.y.\*
1414
1515## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020you can install the bindings:
2121
2222``` console
23- npm install @reason -react-native/safe-area-context
23+ npm install @rescript -react-native/safe-area-context
2424# or
25- yarn add @reason -react-native/safe-area-context
25+ yarn add @rescript -react-native/safe-area-context
2626```
2727
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
2929your ` 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/safe-area-context"
38+ + "@rescript -react-native/safe-area-context"
3939 ],
4040 //...
4141}
@@ -47,7 +47,7 @@ your `bsconfig.json`:
4747
4848#### ` ReactNativeSafeAreaContext.insets `
4949
50- ``` reason
50+ ``` rescript
5151type insets = {
5252 top: float,
5353 bottom: float,
@@ -58,7 +58,7 @@ type insets = {
5858
5959#### ` ReactNativeSafeAreaContext.frame `
6060
61- ``` reason
61+ ``` rescript
6262type frame = {
6363 x: float,
6464 y: float,
@@ -69,7 +69,7 @@ type frame = {
6969
7070#### ` ReactNativeSafeAreaContext.metrics `
7171
72- ``` reason
72+ ``` rescript
7373type metrics = {
7474 insets,
7575 frame,
@@ -86,7 +86,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#optimization>
8686
8787#### ` <ReactNativeSafeAreaContext.SafeAreaProvider> `
8888
89- ``` reason
89+ ``` rescript
9090open ReactNative;
9191open ReactNativeSafeAreaContext;
9292
@@ -104,7 +104,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#web-ssr> for
104104
105105#### ` ReactNativeSafeAreaContext.useSafeAreaInsets(): insets `
106106
107- ``` reason
107+ ``` rescript
108108open ReactNative;
109109open ReactNativeSafeAreaContext;
110110
@@ -117,7 +117,7 @@ let make = () => {
117117
118118#### ` ReactNativeSafeAreaContext.useSafeAreaFrame(): frame `
119119
120- ``` reason
120+ ``` rescript
121121open ReactNative;
122122open ReactNativeSafeAreaContext;
123123
@@ -130,7 +130,7 @@ let make = () => {
130130
131131#### ` <ReactNativeSafeAreaContext.SafeAreaInsetsContext.Consumer> `
132132
133- ``` reason
133+ ``` rescript
134134open ReactNative;
135135open ReactNativeSafeAreaContext;
136136
@@ -145,7 +145,7 @@ let make = () => {
145145
146146#### ` <ReactNativeSafeAreaContext.SafeAreaView> `
147147
148- ``` reason
148+ ``` rescript
149149open ReactNative;
150150open ReactNativeSafeAreaContext;
151151
@@ -169,11 +169,11 @@ releases.
169169## Contribute
170170
171171Read 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 )
173173before contributing.
174174
175175## Code of Conduct
176176
177177We 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 )
179179so that you can understand what actions will and will not be tolerated.
0 commit comments