-
-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathToastAndroid.res
More file actions
33 lines (25 loc) · 886 Bytes
/
ToastAndroid.res
File metadata and controls
33 lines (25 loc) · 886 Bytes
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
type message = string
type duration
type gravity
@module("react-native") @scope("ToastAndroid")
external short: duration = "SHORT"
@module("react-native") @scope("ToastAndroid")
external long: duration = "LONG"
@module("react-native") @scope("ToastAndroid")
external top: gravity = "TOP"
@module("react-native") @scope("ToastAndroid")
external bottom: gravity = "BOTTOM"
@module("react-native") @scope("ToastAndroid")
external center: gravity = "CENTER"
@module("react-native") @scope("ToastAndroid")
external show: (message, duration) => unit = "show"
@module("react-native") @scope("ToastAndroid")
external showWithGravity: (message, duration, gravity) => unit = "showWithGravity"
@module("react-native") @scope("ToastAndroid")
external showWithGravityAndOffset: (
message,
duration,
gravity,
~xOffset: float,
~yOffset: float,
) => unit = "showWithGravityAndOffset"