forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed return type in backhandler Android so that it overrides defau…
…lt behaviour
- Loading branch information
1 parent
2f4180f
commit df2a58f
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]; |