🚧 VeloxKit is pre-release software. APIs may change before v1.0. Get started →
Documentation
Packages
@velox/context-menu

@velox/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 @velox/context-menu

Usage

import { ContextMenu } from '@velox/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.