react-native-action-sheet icon indicating copy to clipboard operation
react-native-action-sheet copied to clipboard

feat: Add option to always show cancel button

Open hmhobbs opened this issue 1 year ago • 2 comments

This adds a boolean option stickyCancel to showActionSheetWithOptions that moves the cancel button outside of the ScrollView in the custom action sheet containing the other options. This emulates the default behavior on iOS. It is especially useful for action sheets with a long list of options. This also adds another button to the example app to demonstrate this behavior.

With stickyCancel: true Screenshot from 2024-07-21 19-32-08

with stickyCancel: false Screenshot from 2024-07-21 19-32-34

hmhobbs avatar Jul 21 '24 23:07 hmhobbs

This is to address the following issues: #319 #327

hmhobbs avatar Jul 21 '24 23:07 hmhobbs

Also cancel-button is not show in iPads, so this would be nice to force it to show.

Crare avatar Apr 23 '25 11:04 Crare