expo / react-native-action-sheet

A cross-platform ActionSheet for React Native
MIT License
1.37k stars 224 forks source link

Feature request: Add support for sticky cancel button on web and Android #327

Open hmhobbs opened 2 months ago

hmhobbs commented 2 months ago

On iOS providing a prop of cancelButtonIndex removes the option with that index from the main list and instead makes it stick to the bottom of the screen. This is useful if the list is long as the user doesn't have to scroll to find the cancel option. It would be great if this could be implemented for the pure JS action sheet as well, either by default or with an additional prop to make the cancel button sticky.

hmhobbs commented 2 months ago

Following up with some screenshots and a snack to better illustrate what I'm talking about. Android (Cancel button hidden and must be scrolled to): image iOS (Sticky floating cancel button): image

Snack available here