File tree Expand file tree Collapse file tree 3 files changed +57
-9
lines changed
reason-react-native/src/apis Expand file tree Collapse file tree 3 files changed +57
-9
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,29 @@ external currentState: t = "";
2121
2222[@bs.scope "AppState"] [@bs.module "react-native"]
2323external addEventListener:
24- ([@bs.string] [ | `change(t => unit) | `memoryWarning(unit => unit)]) =>
25- EventSubscription.t =
24+ (
25+ [@bs.string]
26+ [
27+ | `change(t => unit)
28+ | `focus(unit => unit)
29+ | `blur(unit => unit)
30+ | `memoryWarning(unit => unit)
31+ ]
32+ ) =>
33+ unit =
2634 "";
2735
2836[@bs.scope "AppState"] [@bs.module "react-native"]
2937external removeEventListener:
30- ([@bs.string] [ | `change(t => unit) | `memoryWarning(unit => unit)]) =>
38+ (
39+ [@bs.string]
40+ [
41+ | `change(t => unit)
42+ | `focus(unit => unit)
43+ | `blur(unit => unit)
44+ | `memoryWarning(unit => unit)
45+ ]
46+ ) =>
3147 unit =
3248 "";
3349
Original file line number Diff line number Diff line change @@ -14,12 +14,28 @@ external currentState: t = "";
1414
1515[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
1616external addEventListener :
17- ([@ bs . string ] [ | ` change (t => unit ) | ` memoryWarning (unit => unit )] ) =>
18- EventSubscription . t =
17+ (
18+ [@ bs . string ]
19+ [
20+ | ` change (t => unit )
21+ | ` focus (unit => unit )
22+ | ` blur (unit => unit )
23+ | ` memoryWarning (unit => unit )
24+ ]
25+ ) =>
26+ unit =
1927 "" ;
2028
2129[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
2230external removeEventListener :
23- ([@ bs . string ] [ | ` change (t => unit ) | ` memoryWarning (unit => unit )] ) =>
31+ (
32+ [@ bs . string ]
33+ [
34+ | ` change (t => unit )
35+ | ` focus (unit => unit )
36+ | ` blur (unit => unit )
37+ | ` memoryWarning (unit => unit )
38+ ]
39+ ) =>
2440 unit =
2541 "" ;
Original file line number Diff line number Diff line change @@ -14,12 +14,28 @@ external currentState: t = "";
1414
1515[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
1616external addEventListener :
17- ([@ bs . string ] [ | ` change (t => unit ) | ` memoryWarning (unit => unit )] ) =>
18- EventSubscription . t =
17+ (
18+ [@ bs . string ]
19+ [
20+ | ` change (t => unit )
21+ | ` focus (unit => unit )
22+ | ` blur (unit => unit )
23+ | ` memoryWarning (unit => unit )
24+ ]
25+ ) =>
26+ unit =
1927 "" ;
2028
2129[@ bs . scope "AppState" ] [@ bs . module "react-native" ]
2230external removeEventListener :
23- ([@ bs . string ] [ | ` change (t => unit ) | ` memoryWarning (unit => unit )] ) =>
31+ (
32+ [@ bs . string ]
33+ [
34+ | ` change (t => unit )
35+ | ` focus (unit => unit )
36+ | ` blur (unit => unit )
37+ | ` memoryWarning (unit => unit )
38+ ]
39+ ) =>
2440 unit =
2541 "" ;
You can’t perform that action at this time.
0 commit comments