File tree Expand file tree Collapse file tree
reason-react-native/src/apis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ wip: true
55---
66
77``` reason
8+ type extra;
9+
10+ [@bs.obj] external extra: (~key: string, ~value: 'a) => extra = "";
11+
812[@bs.scope "Linking"] [@bs.module "react-native"]
913external openURL: string => Js.Promise.t(unit) = "";
1014
@@ -14,6 +18,14 @@ external canOpenURL: string => Js.Promise.t(bool) = "";
1418[@bs.scope "Linking"] [@bs.module "react-native"]
1519external getInitialURL: unit => Js.Promise.t(Js.Null.t(string)) = "";
1620
21+ // multiple externals
22+ [@bs.scope "Linking"] [@bs.module "react-native"]
23+ external sendIntent: string => unit = "";
24+
25+ // multiple externals
26+ [@bs.scope "Linking"] [@bs.module "react-native"]
27+ external sendIntentWithExtras: (string, array(extra)) => unit = "sendIntent";
28+
1729[@bs.scope "Linking"] [@bs.module "react-native"]
1830external addEventListener:
1931 ([@bs.string] [ | `url], {. "url": string} => unit) => unit =
@@ -24,4 +36,4 @@ external removeEventListener:
2436 ([@bs.string] [ | `url], {. "url": string} => unit) => unit =
2537 "";
2638
27- ```
39+ ```
Original file line number Diff line number Diff line change 1+ type extra ;
2+
3+ [@ bs . obj ] external extra : (~key : string , ~value : ' a ) => extra = "" ;
4+
15[@ bs . scope "Linking" ] [@ bs . module "react-native" ]
26external openURL : string => Js . Promise . t (unit ) = "" ;
37
@@ -7,6 +11,14 @@ external canOpenURL: string => Js.Promise.t(bool) = "";
711[@ bs . scope "Linking" ] [@ bs . module "react-native" ]
812external getInitialURL : unit => Js . Promise . t (Js . Null . t (string )) = "" ;
913
14+ // multiple externals
15+ [@ bs . scope "Linking" ] [@ bs . module "react-native" ]
16+ external sendIntent : string => unit = "" ;
17+
18+ // multiple externals
19+ [@ bs . scope "Linking" ] [@ bs . module "react-native" ]
20+ external sendIntentWithExtras : (string , array (extra )) => unit = "sendIntent" ;
21+
1022[@ bs . scope "Linking" ] [@ bs . module "react-native" ]
1123external addEventListener :
1224 ([@ bs . string ] [ | ` url ] , {. "url": string } => unit ) => unit =
You can’t perform that action at this time.
0 commit comments