Skip to content

Commit b31012b

Browse files
committed
Add InteractionManager
1 parent 60147d8 commit b31012b

4 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
https://facebook.github.io/react-native/docs/interactionmanager
3+
*/
4+
5+
type interactionHandle;
6+
7+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
8+
/* @todo this returns a cancellable "promise", we need to type return correctly */
9+
external runAfterInteractions: (unit => unit) => Js.t({.}) =
10+
"runAfterInteractions";
11+
12+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
13+
external createInteractionHandle: unit => interactionHandle =
14+
"createInteractionHandle";
15+
16+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
17+
external clearInteractionHandle: interactionHandle => unit =
18+
"clearInteractionHandle";
19+
20+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
21+
external setDeadline: float => unit = "setDeadline";

‎bs-react-native/src/InteractionManager.bs.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
https://facebook.github.io/react-native/docs/interactionmanager
3+
*/
4+
5+
type interactionHandle;
6+
7+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
8+
/* @todo this returns a cancellable "promise", we need to type return correctly */
9+
external runAfterInteractions: (unit => unit) => Js.t({.}) =
10+
"runAfterInteractions";
11+
12+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
13+
external createInteractionHandle: unit => interactionHandle =
14+
"createInteractionHandle";
15+
16+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
17+
external clearInteractionHandle: interactionHandle => unit =
18+
"clearInteractionHandle";
19+
20+
[@bs.module "react-native"] [@bs.scope "InteractionManager"]
21+
external setDeadline: float => unit = "setDeadline";

0 commit comments

Comments
 (0)