/
ReactNativeModal.rei
54 lines (52 loc) · 1.28 KB
/
ReactNativeModal.rei
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
type animation = [
| `slideInUp
| `slideInDown
| `slideInRight
| `slideInLeft
| `slideOutDown
| `slideOutUp
| `slideOutDown
| `slideOutRight
| `slideOutLeft
];
type swipeDirection = [ | `down | `left | `right | `up];
type orientation = [
| `portrait
| `portraitUpsideDown
| `landscape
| `landscapeLeft
| `landscapeRight
];
let make:
(
~animationIn: animation=?,
~animationOut: animation=?,
~animationInTiming: int=?,
~animationOutTiming: int=?,
~avoidKeyboard: bool=?,
~backdropColor: string=?,
~backdropOpacity: float=?,
~backdropTransitionInTiming: int=?,
~backdropTransitionOutTiming: int=?,
~isVisible: bool,
~onBackButtonPress: unit => unit=?,
~onBackdropPress: unit => unit=?,
~onModalHide: unit => unit=?,
~onModalShow: unit => unit=?,
~onSwipe: unit => unit=?,
~scrollOffset: int=?,
~scrollOffsetMax: int=?,
~scrollTo: unit => unit=?,
~swipeThreshold: int=?,
~swipeDirection: swipeDirection=?,
~useNativeDriver: bool=?,
~hideModalContentWhileAnimating: bool=?,
~supportedOrientations: array(orientation)=?,
~style: BsReactNative.Style.t=?,
'a
) =>
ReasonReact.component(
ReasonReact.stateless,
ReasonReact.noRetainedProps,
ReasonReact.actionless,
);