forked from beefe/react-native-actionsheet
-
Notifications
You must be signed in to change notification settings - Fork 24
/
options.js
66 lines (57 loc) · 1.29 KB
/
options.js
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
55
56
57
58
59
60
61
62
63
64
65
66
/**
* define all valid options
*/
export default [
/**
* a list of button titles (required)
* @type string[]
* @example
* ['cancel', 'Apple', 'Banana']
*/
'options',
/**
* index of cancel button in options
* @type int
*/
'cancelButtonIndex',
/**
* index of destructive button in options
* @type int
*/
'destructiveButtonIndex',
/**
* a title to show above the action sheet
* @type string
*/
'title',
/**
* a message to show below the title
* @type string
*/
'message',
/**
* the color used for non-destructive button titles
* @type string
* @see http://facebook.github.io/react-native/docs/colors.html
*/
'tintColor',
/**
* iOS only, change default theme
* @default system theme color
*/
'userInterfaceStyle',
/**
* The 'callback' function takes one parameter, the zero-based index of the selected item
* @type (buttonIndex) => void
* @example
* (buttonIndex) => if (buttonIndex === 1) { // do something }
*/
'onPress',
/**
* Android only, set the Modal to be drawn under the (translucent) StatusBar.
* Sets the property of the same name on the Modal.
* @type boolean
* @see https://reactnative.dev/docs/modal#statusbartranslucent-android
*/
'statusBarTranslucent'
]