@octane-xplat/context-menu 0.0.0-stage → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ export type ContextMenuActivation = 'longPress' | 'singlePress'
2
+
3
+ export interface ContextMenuItem {
4
+ id: string
5
+ title: string
6
+ destructive?: boolean
7
+ disabled?: boolean
8
+ divider?: boolean
9
+ }
10
+
11
+ export interface ContextMenuProps {
12
+ id?: string
13
+ className?: any
14
+ style?: any
15
+ activation?: ContextMenuActivation
16
+ items?: readonly ContextMenuItem[]
17
+ trigger: () => any
18
+ onItemSelected?: (id: string) => void
19
+ accessibilityLabel?: string
20
+ }
21
+
22
+ export declare function ContextMenu(props: ContextMenuProps): unknown