Skip to content

[iOS26] [SDK26] with ActionSheetIOS, specifying cancelButtonIndex causes the button at that index to disappear #55074

@mlisikbf

Description

@mlisikbf

Description

When building with iOS26.* SDK, if an action sheet (ActionSheetIOS) specifies a cancelButtonIndex, the button at that index will disappear.

Seemingly undocumented change in iOS 26? - specifying style = UIAlertActionStyleCancel for an alert controller action (which we do based on cancelButtonIndex) when using UIAlertActionStyle style = UIAlertActionStyleDefault causes the button to disappear.

A workaround is to specify undefined or invalid index for iOS 26.

Steps to reproduce

  1. Ensure you are using Xcode 26 build tools (check with xcodebuild --version)
  2. Build to an iOS26 device or simulator
  3. Open the action sheet

React Native Version

0.83.1

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info

System:
  OS: macOS 26.2
  CPU: (11) arm64 Apple M3 Pro
  Memory: 182.39 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.14.0
    path: /Users/mlisik/.nvm/versions/node/v22.14.0/bin/node
  Yarn:
    version: 1.22.22
    path: /Users/mlisik/.nvm/versions/node/v22.14.0/bin/yarn
  npm:
    version: 10.9.2
    path: /Users/mlisik/.nvm/versions/node/v22.14.0/bin/npm
  Watchman:
    version: 2025.04.14.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/mlisik/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2025.2 AI-252.27397.103.2522.14617522
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.16
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /Users/mlisik/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.1
    wanted: 0.83.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

irrelevant

MANDATORY Reproducer

https://github.com/mlisikbf/MobileTest_ActionSheet

Screenshots and Videos

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-01-07.at.13.06.50.mov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions