An open API service indexing awesome lists of open source software.

https://github.com/mustafakucuk/react-native-mkmenu

Cross platform modal menu.
https://github.com/mustafakucuk/react-native-mkmenu

react-native react-native-menu react-native-mkmenu react-native-modal-menu

Last synced: 4 months ago
JSON representation

Cross platform modal menu.

Awesome Lists containing this project

README

          

# react-native-mkmenu
Cross platform modal menu.

# Installation

```
npm i react-native-mkmenu --save
```
# Props

| Prop | Type | Default |
| :------- | ----: | :---: |
| modalTitle | string | Select item |
| visible | boolean | false |
| data | object | |
| onPress | function | ```(index,menuTitle) => console.log('Selected: ' + menuTitle)``` |

# Usage

Firstly include module in projecT
```
import MKMenu from 'react-native-mkmenu';
```
then,

```javascript
},
{menuTitle:"Menu 2"},
{menuTitle:"Menu 3"}
]}
onPress={ (index,menuTitle) => alert("Selected: " + menuTitle) }
/>
```