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.2 to 0.5.3

4

doc/api.md

@@ -98,5 +98,5 @@ # API

|---|---|---|
|`optionsWrapper`|`Object`|Style of wrapping `View` component|
|`optionsWrapper`|`Object`|Style of `View` component wrapping all options|
|`optionsContainer`|`Object`|Style of wrapping `AnimatedView` component|
|`optionWrapper`|`Object`|Style of wrapping `View` component.|
|`optionWrapper`|`Object`|Style of `View` component wrapping single option|
|`optionTouchable`|`Object`|Style props of `TouchableHighlight`. Supported keys: `activeOpacity`, `underlayColor`|

@@ -103,0 +103,0 @@ |`optionText`|`Object`|Style of `Text` component (when `text` shorthand option is defined)|

@@ -34,3 +34,3 @@ # Extension points

## Custom renderer
It is possible to use different renderer to display menu. There are already few predefined renderers: e.g. `ContextMenu` and `SlideInMenu` (from the `renderers` module). To use it you need to pass it to the `<Menu />` props:
It is possible to use different renderer to display menu. There are already few predefined renderers: e.g. `ContextMenu` and `SlideInMenu` (from the `renderers` module). To use it you need to pass it to the `<Menu />` props or use `setDefaultRenderer` (see [API](api.md#static-functions)):

@@ -37,0 +37,0 @@ ```

{
"name": "react-native-popup-menu",
"version": "0.5.2",
"version": "0.5.3",
"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 some limitations.
Target platforms are both Android and iOS. The library is prepared for React Native 0.26.
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.

@@ -15,3 +15,5 @@ ## Installation

<kbd>
![](./android.demo.gif)
</kbd>

@@ -18,0 +20,0 @@ ## Basic Usage

@@ -49,3 +49,1 @@ import React, { Component } from 'react';

};
export default MenuTrigger;

Sorry, the diff of this file is not supported yet

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