我想在 ActionSheet 按钮中显示带有标题的图像,如下所示:
我正在使用的代码是
var BUTTONS = [
'Investigated and Resolved',
'Under Investigation',
'Action Required',
'Urgent Action Required',
// 'Delete',
'Cancel',
];
var CANCEL_INDEX = 4;
showActionSheet = () => {
ActionSheet.showActionSheetWithOptions({
title: 'Flag the status of the event',
options: BUTTONS,
cancelButtonIndex: CANCEL_INDEX,
},
(buttonIndex) => {
this.setState({ clicked: BUTTONS[buttonIndex] });
});
}
有没有办法设置文本样式或添加图像?