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,13 +5,19 @@ wip: true
55---
66
77``` reason
8+ type remove = {. "remove": unit => unit};
9+
810[@bs.scope "BackHandler"] [@bs.module "react-native"]
911external exitApp: unit => unit = "";
1012
1113[@bs.scope "BackHandler"] [@bs.module "react-native"]
12- external addEventListener: (string, unit => bool) => EventSubscription.t = "";
14+ external addEventListener:
15+ ([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) => remove =
16+ "";
1317
1418[@bs.scope "BackHandler"] [@bs.module "react-native"]
15- external removeEventListener: (string, unit => bool) => unit = "";
19+ external removeEventListener:
20+ ([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) => unit =
21+ "";
1622
1723```
Original file line number Diff line number Diff line change 1+ type remove = {. "remove": unit => unit };
2+
13[@ bs . scope "BackHandler" ] [@ bs . module "react-native" ]
24external exitApp : unit => unit = "" ;
35
46[@ bs . scope "BackHandler" ] [@ bs . module "react-native" ]
5- external addEventListener : (string , unit => bool ) => EventSubscription . t = "" ;
7+ external addEventListener :
8+ ([@ bs . string ] [ | ` backPress | ` hardwareBackPress ] , unit => bool ) => remove =
9+ "" ;
610
711[@ bs . scope "BackHandler" ] [@ bs . module "react-native" ]
8- external removeEventListener : (string , unit => bool ) => unit = "" ;
12+ external removeEventListener :
13+ ([@ bs . string ] [ | ` backPress | ` hardwareBackPress ] , unit => bool ) => unit =
14+ "" ;
You can’t perform that action at this time.
0 commit comments