@@ -45,7 +45,7 @@ yarn add @reason-react-native/inappbrowser
4545open Js.Promise;
4646
4747let opts = iosOptions(~preferredBarTintColor="#ff0000", ());
48- openBrowserIos ("https://rescript-lang.org", opts)
48+ openBrowser ("https://rescript-lang.org", `IosOptions( opts) )
4949|> Js.Promise.then_((result: browserResult) => {
5050 Js.log(result.resultType);
5151 resolve();
@@ -56,7 +56,7 @@ openBrowserIos("https://rescript-lang.org", opts)
5656``` reason
5757open Js.Promise;
5858
59- openAuthIos("https://example.com/auth", "myschema://auth", iosOptions())
59+ openAuthIos("https://example.com/auth", "myschema://auth", `IosOptions( iosOptions() ))
6060|> Js.Promise.then_((result: authResult) => {
6161 switch (result.url) {
6262 | Some(url) => Js.log(url)
@@ -70,23 +70,19 @@ openAuthIos("https://example.com/auth", "myschema://auth", iosOptions())
7070### Types
7171
7272#### ` authResult `
73+
7374#### ` browserResult `
75+
7476#### ` iosOptions `
75- #### ` androidOptions `
7677
78+ #### ` androidOptions `
7779
7880### Methods
7981
80- #### ` ReactNativeInAppBrowser.openBrowserIos `
81-
82- ``` reason
83- (string, iosOptions) => Js.Promise.t(browserResult)
84- ```
85-
86- #### ` ReactNativeInAppBrowser.openBrowserAndroid `
82+ #### ` ReactNativeInAppBrowser.openBrowser `
8783
8884``` reason
89- (string, androidOptions) => Js.Promise.t(browserResult)
85+ (string, [ `AndroidOptions( androidOptions) | `IosOptions(iosOptions) ]) => Js.Promise.t(browserResult)
9086```
9187
9288#### ` ReactNativeInAppBrowser.close `
@@ -95,16 +91,10 @@ openAuthIos("https://example.com/auth", "myschema://auth", iosOptions())
9591unit => unit
9692```
9793
98- #### ` ReactNativeInAppBrowser.openAuthIos `
99-
100- ``` reason
101- (string, iosOptions) => Js.Promise.t(authResult)
102- ```
103-
104- #### ` ReactNativeInAppBrowser.openAuthAndroid `
94+ #### ` ReactNativeInAppBrowser.openAuth `
10595
10696``` reason
107- (string, androidOptions) => Js.Promise.t(authResult)
97+ (string, [ `AndroidOptions( androidOptions) | `IosOptions(iosOptions) ]) => Js.Promise.t(authResult)
10898```
10999
110100#### ` ReactNativeInAppBrowser.closeAuth `
0 commit comments