@@ -21,13 +21,15 @@ original_id: actionsheetios
21
21
static showActionSheetWithOptions (options, callback)
22
22
```
23
23
24
- Display an iOS action sheet. The ` options ` object must contain one or more of:
24
+ Display an iOS action sheet. The ` options ` object must contain one or more
25
+ of:
25
26
26
- * ` options ` (array of strings) - a list of button titles (required)
27
- * ` cancelButtonIndex ` (int) - index of cancel button in ` options `
28
- * ` destructiveButtonIndex ` (int) - index of destructive button in ` options `
29
- * ` title ` (string) - a title to show above the action sheet
30
- * ` message ` (string) - a message to show below the title
27
+ - ` options ` (array of strings) - a list of button titles (required)
28
+ - ` cancelButtonIndex ` (int) - index of cancel button in ` options `
29
+ - ` destructiveButtonIndex ` (int) - index of destructive button in ` options `
30
+ - ` title ` (string) - a title to show above the action sheet
31
+ - ` message ` (string) - a message to show below the title
32
+ - ` tintColor ` (string) - the [ color] ( colors.md ) used for non-destructive button titles
31
33
32
34
The 'callback' function takes one parameter, the zero-based index of the selected item.
33
35
@@ -36,8 +38,8 @@ Minimal example:
36
38
```
37
39
ActionSheetIOS.showActionSheetWithOptions({
38
40
options: ['Remove', 'Cancel'],
39
- destructiveButtonIndex: 1 ,
40
- cancelButtonIndex: 0 ,
41
+ destructiveButtonIndex: 0 ,
42
+ cancelButtonIndex: 1 ,
41
43
},
42
44
(buttonIndex) => {
43
45
if (buttonIndex === 1) { /* destructive action */ }
0 commit comments