@glyx-dev/context-menu
Right-click context menus using the native onRightPress event. Dismisses on any
outside click and flips back on-screen near window edges.
Install
npm install @glyx-dev/context-menuUsage
import { ContextMenu } from '@glyx-dev/context-menu'
<ContextMenu items={[
{ label: 'Open', action: () => open(id) },
{ separator: true },
{ label: 'Delete', action: () => del(id), destructive: true },
]}>
<NoteCard note={note} />
</ContextMenu>Right-click is also available on any Pressable via the onRightPress prop.