expo / expo/react-native-action-sheet
cancelButtonIndex not shown on iOS 26
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
The `cancelButtonIndex` doesn't seem to be compatible with iOS 26.
using the `onPress` from the getting started in the read me
```jsx
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.