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 @@ -22,7 +22,7 @@ external currentState: t = "";
2222[@bs.scope "AppState"] [@bs.module "react-native"]
2323external addEventListener:
2424 ([@bs.string] [ | `change(t => unit) | `memoryWarning(unit => unit)]) =>
25- EventSubscription.t =
25+ unit =
2626 "";
2727
2828[@bs.scope "AppState"] [@bs.module "react-native"]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ external currentState: t = "";
1515[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
1616external addEventListener :
1717 ([@ bs . string ] [ | ` change (t => unit ) | ` memoryWarning (unit => unit )] ) =>
18- EventSubscription . t =
18+ unit =
1919 "" ;
2020
2121[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ external currentState: t = "";
1515[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
1616external addEventListener :
1717 ([@ bs . string ] [ | ` change (t => unit ) | ` memoryWarning (unit => unit )] ) =>
18- EventSubscription . t =
18+ unit =
1919 "" ;
2020
2121[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
Original file line number Diff line number Diff line change @@ -5,14 +5,13 @@ wip: true
55---
66
77``` reason
8- type remove = {. "remove": unit => unit};
9-
108[@bs.scope "BackHandler"] [@bs.module "react-native"]
119external exitApp: unit => unit = "";
1210
1311[@bs.scope "BackHandler"] [@bs.module "react-native"]
1412external addEventListener:
15- ([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) => remove =
13+ ([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) =>
14+ EventSubscription.t =
1615 "";
1716
1817[@bs.scope "BackHandler"] [@bs.module "react-native"]
Original file line number Diff line number Diff line change 1- type remove = {. "remove": unit => unit };
2-
31[@ bs . scope "BackHandler" ] [@ bs . module "react-native" ]
42external exitApp : unit => unit = "" ;
53
64[@ bs . scope "BackHandler" ] [@ bs . module "react-native" ]
75external addEventListener :
8- ([@ bs . string ] [ | ` backPress | ` hardwareBackPress ] , unit => bool ) => remove =
6+ ([@ bs . string ] [ | ` backPress | ` hardwareBackPress ] , unit => bool ) =>
7+ EventSubscription . t =
98 "" ;
109
1110[@ bs . scope "BackHandler" ] [@ bs . module "react-native" ]
Original file line number Diff line number Diff line change @@ -49,11 +49,9 @@ type info = {
4949 "effectiveType": EffectiveConnectionType.t,
5050};
5151
52- type remove = {. "remove": unit => unit};
53-
5452[@bs.module "react-native"] [@bs.scope "NetInfo"]
5553external addEventListener:
56- ([@bs.string] [ | `connectionChange], info => unit) => remove =
54+ ([@bs.string] [ | `connectionChange], info => unit) => EventSubscription.t =
5755 "";
5856
5957[@bs.module "react-native"] [@bs.scope "NetInfo"]
@@ -70,7 +68,7 @@ external getConnectionInfo: unit => Js.Promise.t(info) = "";
7068module IsConnected = {
7169 [@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]
7270 external addEventListener:
73- ([@bs.string] [ | `connectionChange], bool => unit) => remove =
71+ ([@bs.string] [ | `connectionChange], bool => unit) => EventSubscription.t =
7472 "";
7573
7674 [@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ type info = {
4242 "effectiveType": EffectiveConnectionType . t ,
4343};
4444
45- type remove = {. "remove": unit => unit };
46-
4745[@ bs . module "react-native" ] [@ bs . scope "NetInfo" ]
4846external addEventListener :
49- ([@ bs . string ] [ | ` connectionChange ] , info => unit ) => remove =
47+ ([@ bs . string ] [ | ` connectionChange ] , info => unit ) => EventSubscription . t =
5048 "" ;
5149
5250[@ bs . module "react-native" ] [@ bs . scope "NetInfo" ]
@@ -63,7 +61,7 @@ external getConnectionInfo: unit => Js.Promise.t(info) = "";
6361module IsConnected = {
6462 [@ bs . module "react-native" ] [@ bs . scope ("NetInfo" , "isConnected" )]
6563 external addEventListener :
66- ([@ bs . string ] [ | ` connectionChange ] , bool => unit ) => remove =
64+ ([@ bs . string ] [ | ` connectionChange ] , bool => unit ) => EventSubscription . t =
6765 "" ;
6866
6967 [@ bs . module "react-native" ] [@ bs . scope ("NetInfo" , "isConnected" )]
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ type info = {
4242 "_type": ConnectionType . t ,
4343};
4444
45- type remove = {. "remove": unit => unit };
46-
4745[@ bs . module "react-native" ] [@ bs . scope "NetInfo" ]
4846external addEventListener :
49- ([@ bs . string ] [ | ` connectionChange ] , info => unit ) => remove =
47+ ([@ bs . string ] [ | ` connectionChange ] , info => unit ) => EventSubscription . t =
5048 "" ;
5149
5250[@ bs . module "react-native" ] [@ bs . scope "NetInfo" ]
@@ -63,7 +61,7 @@ external getConnectionInfo: unit => Js.Promise.t(info) = "";
6361module IsConnected : {
6462 [@ bs . module "react-native" ] [@ bs . scope ("NetInfo" , "isConnected" )]
6563 external addEventListener :
66- ([@ bs . string ] [ | ` connectionChange ] , bool => unit ) => remove =
64+ ([@ bs . string ] [ | ` connectionChange ] , bool => unit ) => EventSubscription . t =
6765 "" ;
6866
6967 [@ bs . module "react-native" ] [@ bs . scope ("NetInfo" , "isConnected" )]
You can’t perform that action at this time.
0 commit comments