Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to always show cancel button #330

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hmhobbs
Copy link

@hmhobbs hmhobbs commented Jul 21, 2024

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
Copy link
Author

hmhobbs commented Jul 21, 2024

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

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.

1 participant