diff --git a/src/backHandlerRe.re b/src/backHandlerRe.re index fbc7604b6b80a4..87d2df67c802a1 100644 --- a/src/backHandlerRe.re +++ b/src/backHandlerRe.re @@ -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"]; \ No newline at end of file +external removeEventListener : string => (unit => bool) => unit = + "" [@@bs.scope "BackHandler"] [@@bs.module "react-native"]; diff --git a/src/backHandlerRe.rei b/src/backHandlerRe.rei index fbc7604b6b80a4..87d2df67c802a1 100644 --- a/src/backHandlerRe.rei +++ b/src/backHandlerRe.rei @@ -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"]; \ No newline at end of file +external removeEventListener : string => (unit => bool) => unit = + "" [@@bs.scope "BackHandler"] [@@bs.module "react-native"];