react-native-popup-menu
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
117
0
36608
23
688