Skip to content

Commit

Permalink
Changed return type in backhandler Android so that it overrides defau…
Browse files Browse the repository at this point in the history
…lt behaviour
  • Loading branch information
szymonzmyslony committed Aug 29, 2017
1 parent 2f4180f commit df2a58f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions src/backHandlerRe.re
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
external exitApp : unit => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];
external exitApp : unit => unit = "" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];

external addEventListener : string => (unit => unit) => unit =
external addEventListener : string => (unit => bool) => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];

external removeEventListener : string => (unit => unit) => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];
external removeEventListener : string => (unit => bool) => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];
9 changes: 4 additions & 5 deletions src/backHandlerRe.rei
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
external exitApp : unit => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];
external exitApp : unit => unit = "" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];

external addEventListener : string => (unit => unit) => unit =
external addEventListener : string => (unit => bool) => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];

external removeEventListener : string => (unit => unit) => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];
external removeEventListener : string => (unit => bool) => unit =
"" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];

0 comments on commit df2a58f

Please sign in to comment.