1- # ` @reason -react-native/inappbrowser `
1+ # ` @rescript -react-native/inappbrowser `
22
3- [ ![ Chat] ( https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue )] ( https://reason-react-native.github.io/discord/ )
3+ [ ![ Build Status] ( https://github.com/rescript-react-native/inappbrowser/workflows/Build/badge.svg )] ( https://github.com/rescript-react-native/inappbrowser/actions )
4+ [ ![ Version] ( https://img.shields.io/npm/v/@rescript-react-native/inappbrowser.svg )] ( https://www.npmjs.com/@rescript-react-native/inappbrowser )
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/ )
46
5- [ ReScript] ( https://rescript-lang.org ) / [ Reason ] ( https://reasonml.github.io ) bindings for
7+ [ ReScript] ( https://rescript-lang.org ) bindings for
68[ ` react-native-inappbrowser-reborn ` ] ( https://github.com/proyecto26/react-native-inappbrowser ) .
79
810Exposed as ` ReactNativeInAppBrowser ` module.
911
10- ` @reason -react-native/inappbrowser ` X.y.\* means it's compatible with
12+ ` @rescript -react-native/inappbrowser ` X.y.\* means it's compatible with
1113` react-native-inappbrowser-reborn ` X.y.\*
1214
1315## Installation
@@ -18,30 +20,30 @@ is properly installed & configured by following their installation instructions,
1820you can install the bindings:
1921
2022``` console
21- npm install @reason -react-native/inappbrowser
23+ npm install @rescript -react-native/inappbrowser
2224# or
23- yarn add @reason -react-native/inappbrowser
25+ yarn add @rescript -react-native/inappbrowser
2426```
2527
26- ` @reason -react-native/inappbrowser ` should be added to ` bs-dependencies ` in your
28+ ` @rescript -react-native/inappbrowser ` should be added to ` bs-dependencies ` in your
2729` bsconfig.json ` :
2830
2931``` diff
3032{
3133 //...
3234 "bs-dependencies": [
33- "reason- react",
34- "reason -react-native",
35+ "@rescript/ react",
36+ "rescript -react-native",
3537 // ...
36- + "@reason -react-native/inappbrowser"
38+ + "@rescript -react-native/inappbrowser"
3739 ],
3840 //...
3941}
4042```
4143
4244## Usage
4345
44- ``` reason
46+ ``` rescript
4547open Js.Promise;
4648open ReactNativeInAppBrowser;
4749
@@ -54,7 +56,7 @@ openBrowser("https://rescript-lang.org", `IosOptions(opts))
5456|> ignore;
5557```
5658
57- ``` reason
59+ ``` rescript
5860open Js.Promise;
5961open ReactNativeInAppBrowser;
6062
@@ -83,25 +85,25 @@ openAuthIos("https://example.com/auth", "myschema://auth", `IosOptions(iosOption
8385
8486#### ` ReactNativeInAppBrowser.openBrowser `
8587
86- ``` reason
88+ ``` rescript
8789(string, [ `AndroidOptions(androidOptions) | `IosOptions(iosOptions) ]) => Js.Promise.t(browserResult)
8890```
8991
9092#### ` ReactNativeInAppBrowser.close `
9193
92- ``` reason
94+ ``` rescript
9395unit => unit
9496```
9597
9698#### ` ReactNativeInAppBrowser.openAuth `
9799
98- ``` reason
100+ ``` rescript
99101(string, [ `AndroidOptions(androidOptions) | `IosOptions(iosOptions) ]) => Js.Promise.t(authResult)
100102```
101103
102104#### ` ReactNativeInAppBrowser.closeAuth `
103105
104- ``` reason
106+ ``` rescript
105107unit => unit
106108```
107109
@@ -117,11 +119,11 @@ releases.
117119## Contribute
118120
119121Read the
120- [ contribution guidelines] ( https://github.com/reason -react-native/.github/blob/master/CONTRIBUTING.md )
122+ [ contribution guidelines] ( https://github.com/rescript -react-native/.github/blob/master/CONTRIBUTING.md )
121123before contributing.
122124
123125## Code of Conduct
124126
125127We want this community to be friendly and respectful to each other. Please read
126- [ our full code of conduct] ( https://github.com/reason -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
128+ [ our full code of conduct] ( https://github.com/rescript -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
127129so that you can understand what actions will and will not be tolerated.
0 commit comments