-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
The cancelButtonIndex doesn't seem to be compatible with iOS 26.
using the onPress from the getting started in the read me
const onPress = () => {
const options = ['Delete', 'Save', 'Cancel'];
const destructiveButtonIndex = 0;
const cancelButtonIndex = 2;
showActionSheetWithOptions({
options,
cancelButtonIndex,
destructiveButtonIndex
}, (selectedIndex: number) => {
switch (selectedIndex) {
case 1:
// Save
break;
case destructiveButtonIndex:
// Delete
break;
case cancelButtonIndex:
// Canceled
}});
}results in

GiacomoMineo, amtineo, sashko9807, gontovnik, jasmin92 and 2 more
Metadata
Metadata
Assignees
Labels
No labels