Skip to content

Commit 386df85

Browse files
authored
Add openSettings to Linking API (#518)
1 parent 9327dd5 commit 386df85

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

reason-react-native/src/apis/Linking.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,25 @@ external canOpenURL: string => Js.Promise.t(bool) = "";
1717
1818
[@bs.scope "Linking"] [@bs.module "react-native"]
1919
external getInitialURL: unit => Js.Promise.t(Js.Null.t(string)) = "";
20+
```
2021

21-
// multiple externals
22+
As of React Native 0.60
23+
```reason
24+
[@bs.scope "Linking"] [@bs.module "react-native"]
25+
external openSettings: unit => Js.Promise.t('a) = "";
26+
```
27+
28+
As of React Native 0.59.8
29+
```reason
2230
[@bs.scope "Linking"] [@bs.module "react-native"]
2331
external sendIntent: string => unit = "";
32+
```
2433

25-
// multiple externals
34+
As of React Native 0.59.8
35+
```reason
2636
[@bs.scope "Linking"] [@bs.module "react-native"]
2737
external sendIntentWithExtras: (string, array(extra)) => unit = "sendIntent";
38+
```
2839

2940
[@bs.scope "Linking"] [@bs.module "react-native"]
3041
external addEventListener:

reason-react-native/src/apis/Linking.re

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ external canOpenURL: string => Js.Promise.t(bool) = "";
1111
[@bs.scope "Linking"] [@bs.module "react-native"]
1212
external getInitialURL: unit => Js.Promise.t(Js.Null.t(string)) = "";
1313

14+
[@bs.scope "Linking"] [@bs.module "react-native"]
15+
external openSettings: unit => Js.Promise.t('a) = "";
16+
1417
// multiple externals
1518
[@bs.scope "Linking"] [@bs.module "react-native"]
1619
external sendIntent: string => unit = "";

0 commit comments

Comments
 (0)