Skip to content

cancelButtonIndex not shown on iOS 26 #345

@bjornevik

Description

@bjornevik

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions