Socket
Socket
Sign inDemoInstall

react-native-popup-menu

Package Overview
Dependencies
0
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.6 to 0.5.7

3

doc/api.md

@@ -7,4 +7,5 @@ # API

**Note:** It is important that `<MenuContext />` is on the top of the component hierarchy and wrap all `<Menu />` components.
**Note:** It is important that `<MenuContext />` is on the top of the component hierarchy (e.g. `ScrollView` should be inside of `MenuContext`) and wraps all `<Menu />` components.
This is needed in order to solve z-index issues.
The only known exception is when you use [Modal](https://facebook.github.io/react-native/docs/modal.html) - you need to place (additional) 'MenuContext' inside of 'Modal' (see our [ModalExample](../examples/ModalExample.js))

@@ -11,0 +12,0 @@ ### Methods, `menuActions` context

{
"name": "react-native-popup-menu",
"version": "0.5.6",
"version": "0.5.7",
"description": "extensible popup/context menu for react native",

@@ -5,0 +5,0 @@ "main": "src/index.js",

# react-native-popup-menu
Extensible popup menu component for React Native.
It is inspired by [react-native-menu](https://github.com/jaysoo/react-native-menu) component which has its limitations.
Target platforms are both Android and iOS.

@@ -20,3 +19,6 @@

## Basic Usage
Wrap your application inside `MenuContext` and then simply use `Menu` component where you need it. Below you can find simple examples.
For more detailed documentation check [API](./doc/api.md).
### Context menu - uncontrolled

@@ -23,0 +25,0 @@

@@ -12,2 +12,2 @@ import Menu from './Menu';

export { Menu as default, MenuContext, MenuOption, MenuOptions, MenuTrigger, renderers };
export { Menu as default, Menu, MenuContext, MenuOption, MenuOptions, MenuTrigger, renderers };
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc