Skip to content

Commit

Permalink
Merge pull request facebook#61 from szymonzmyslony/master
Browse files Browse the repository at this point in the history
Changed return type in backhandler Android so that it overrides default behaviour
  • Loading branch information
wokalski authored Aug 29, 2017
2 parents 2f4180f + df2a58f commit 619cead
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 619cead

Please sign in to comment.