1.0.0 • Published 1 year ago

rn-context-menu v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rn-context-menu

A context menu view wrapper for React Native

Demo

https://user-images.githubusercontent.com/44242141/222493265-c7a8550e-959a-4ef4-96f4-22a4f2fc77ab.mp4

Installation

Add the package to your dependencies

npm install rn-context-menu
yarn add rn-context-menu

cd ios && pod install

Configure for iOS

Run npx pod-install after installing the npm package.

API documentation

Props

NameRequiredType
onItemPressNo(event: {nativeEvent: OnPressEvent}) => void
optionsyesRnContextMenu
childrenyesReactNode

OnPressEvent

NameRequiredType
identifieryesstring

RnContextMenu

NameRequiredType
titleyesstring
menusnoRnContextMenuProps[]
actionsyesRnContextMenuAction[]

RnContextMenuProps

NameRequiredType
titleyesstring
imagenoSF Symbol (string)
optionsno"displayInline" / "destructive" / "singleSelection"
childrenyesRnContextMenuAction[]

RnContextMenuAction

NameRequiredType
titleyesstring
imagenoSF Symbol (string)
identifieryesstring
attributeno"destructive" / "disabled" / "hidden"

Contributing

Contributions are very welcome!