Repository navigation
feat(action): add ActionSheet and useActionSheet, plus migration guides for sheets and modals - #87
Merged
Merged
Conversation
…es for sheets and modals ActionSheet lists actions in a BottomSheet: the iOS design floats them in a rounded card with Cancel in its own card, Material and the web show rows with icons and no Cancel by default. Actions can be destructive (the theme's new danger colour), disabled, selected (a ✓ for the current choice) and carry a description line. A tap closes the sheet and the action runs once it has closed, so it can open another modal. useActionSheet shows one from a call, like showActionSheetWithOptions, with no provider: render the returned actionSheet once and call show(). BottomSheet gains showHandle. New migration guides cover @gorhom/bottom-sheet, react-native-modal, react-native-actions-sheet and @expo/react-native-action-sheet. The showcase gains "Photo albums". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ActionSheet: a list of actions in aBottomSheet.label,onPress,description,icon,selected(✓),destructive(themedanger),disabled.onPressruns after it has closed, so an action can open another modal (iOS shows one at a time).useActionSheet():{ show, hide, actionSheet }. RenderactionSheetonce and callshow({ title, actions })from any handler, likeshowActionSheetWithOptions. No provider.Library changes
colors.danger(light and dark).BottomSheet: newshowHandleprop (defaulttrue).Docs
@gorhom/bottom-sheet(with what BottomSheet doesn't do),react-native-modal,react-native-actions-sheet,@expo/react-native-action-sheet.useActionSheet).Checks
pnpm lint,typecheck,build, 717 tests and the docs build pass locally. Not checked visually in a browser.🤖 Generated with Claude Code