Skip to content

Conversation

@evrimfeyyaz
Copy link
Contributor

@evrimfeyyaz evrimfeyyaz commented Apr 9, 2021

This PR adds support for providing multiple indices to the destructiveIndex option.

This is already supported in ActionSheetIOS. Please note that React Native's type definitions are not updated and it seems that number[] is not a valid type for destructiveIndex. You can easily test it and see that it actually works though.

I have also added support for multiple destructive indices on Android.

Resolves #25.

@evrimfeyyaz evrimfeyyaz changed the title Allow multiple destructive indices (fixes #25) Allow multiple destructive indices Apr 9, 2021
@Silvest89
Copy link

Silvest89 commented Jun 18, 2021

Anytime this is going to get merged? @peterpme @bradbyte

@bradbyte bradbyte merged commit 81112b9 into expo:master Jun 21, 2021
@bradbyte bradbyte linked an issue Jun 21, 2021 that may be closed by this pull request
@JakeSidSmith
Copy link

Is there a plan for when this is going to be released?

@bradbyte
Copy link
Contributor

@JakeSidSmith I'm sorry, I need to run the deploy script.

bradbyte pushed a commit that referenced this pull request Aug 9, 2021
# [3.9.0](v3.8.0...v3.9.0) (2021-08-09)

### Bug Fixes

* allow callback to be async ([#183](#183)) ([d0d5182](d0d5182))
* center icons with titles ([#188](#188)) ([d48c323](d48c323))

### Features

* add `userInterfaceStyle` option for iOS ([#206](#206)) ([735cfa5](735cfa5))
* Allow multiple destructive indices ([#210](#210)) ([81112b9](81112b9))
bradbyte pushed a commit that referenced this pull request Aug 9, 2021
# [3.9.0](v3.8.0...v3.9.0) (2021-08-09)

### Bug Fixes

* allow callback to be async ([#183](#183)) ([d0d5182](d0d5182))
* center icons with titles ([#188](#188)) ([d48c323](d48c323))

### Features

* add `userInterfaceStyle` option for iOS ([#206](#206)) ([735cfa5](735cfa5))
* Allow multiple destructive indices ([#210](#210)) ([81112b9](81112b9))
@bradbyte
Copy link
Contributor

bradbyte commented Aug 9, 2021

@JakeSidSmith I'm sorry for the delay 🤦🏻‍♂️ . This is now released in 3.10.0.

robertomartinez09515 added a commit to robertomartinez09515/action-sheet-react-best-proj that referenced this pull request Jul 25, 2022
# [3.9.0](expo/react-native-action-sheet@v3.8.0...v3.9.0) (2021-08-09)

### Bug Fixes

* allow callback to be async ([#183](expo/react-native-action-sheet#183)) ([d0d5182](expo/react-native-action-sheet@d0d5182))
* center icons with titles ([#188](expo/react-native-action-sheet#188)) ([d48c323](expo/react-native-action-sheet@d48c323))

### Features

* add `userInterfaceStyle` option for iOS ([#206](expo/react-native-action-sheet#206)) ([735cfa5](expo/react-native-action-sheet@735cfa5))
* Allow multiple destructive indices ([#210](expo/react-native-action-sheet#210)) ([81112b9](expo/react-native-action-sheet@81112b9))
robertomartinez09515 added a commit to robertomartinez09515/action-sheet-react-best-proj that referenced this pull request Jul 25, 2022
# [3.9.0](expo/react-native-action-sheet@v3.8.0...v3.9.0) (2021-08-09)

### Bug Fixes

* allow callback to be async ([#183](expo/react-native-action-sheet#183)) ([d0d5182](expo/react-native-action-sheet@d0d5182))
* center icons with titles ([#188](expo/react-native-action-sheet#188)) ([d48c323](expo/react-native-action-sheet@d48c323))

### Features

* add `userInterfaceStyle` option for iOS ([#206](expo/react-native-action-sheet#206)) ([735cfa5](expo/react-native-action-sheet@735cfa5))
* Allow multiple destructive indices ([#210](expo/react-native-action-sheet#210)) ([81112b9](expo/react-native-action-sheet@81112b9))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for disabledButtonIndices option Multiple destructiveButtonIndex for red color?

4 participants