Repository navigation
Merged
Conversation
…ions, plus migration guides Menu drops a list of actions from its trigger, or opens on a long press as a context menu. It takes the same actions as ActionSheet (icon, description, selected, destructive, disabled) and runs the pressed one after it closes. The trigger is any node, or a function that gets open() for your own button. It opens under the trigger, or above when there's more room, lined up with the trigger's near edge, and sizes itself to its content. presentation="sheet" opens the actions as an ActionSheet. The iOS design puts icons after the label with hairlines between actions; Material and web menus put icons first. Dropdown now positions itself inside the area its modal covers rather than the whole window. In apps that's the window, so nothing changes; in the site's phone previews, dropdowns now open inside the phone instead of off-screen. Migration guides cover @react-native-menu/menu, zeego and react-native-popup-menu. The "Photo albums" showcase sorts from a Menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Menu: a list of actions that drops from its trigger, or opens on a long press as a context menu.actionsasActionSheet:icon,description,selected(✓),destructive,disabled.onPressruns after the menu closes.accessibilityLabel), or({ open, visible }) => <YourButton />.align="auto"lines up with the trigger's near edge, so a ⋯ at the end of a row opens inwards. Sizes itself to its content, so short menus don't scroll.presentation="sheet"opens the actions as anActionSheet.openOnLongPressfor context menus.@react-native-menu/menuandzeego).Dropdown(shared, not exported)onClosedandstyleprops, used by Menu.Docs
@react-native-menu/menu,zeego,react-native-popup-menu.Checks
pnpm lint,typecheck,build, 726 tests and the docs build pass locally. The scrollbar and centring fixes and the phone-preview position fix have not been checked in a browser yet.🤖 Generated with Claude Code