Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
llr101 authored Dec 15, 2017
1 parent 34e6cc5 commit afbf525
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# react-native-picker-actionsheet [![Monthly download](https://img.shields.io/npm/dm/react-native-picker-actionsheet.svg)](https://img.shields.io/npm/dm/react-native-picker-actionsheet.svg) [![Total downloads](https://img.shields.io/npm/dt/react-native-picker-actionsheet.svg)](https://img.shields.io/npm/dt/react-native-picker-actionsheet.svg)

## Install

```bash
npm install react-native-picker-actionsheet --save
```

## Usage

```javascript
import AlertInput from 'react-native-picker-actionsheet';

<AlertInput />
```

## Example

![ios](https://raw.githubusercontent.com/BooYeu/react-native-picker-actionsheet/master/images/ios.jpg)
![android](https://raw.githubusercontent.com/BooYeu/react-native-picker-actionsheet/master/images/android.jpg)

## Properties

| Prop | Default | Required | Description |
| :------------ |:---------------:| :---------------:| :-----|
| show | false | yes | Controller whether or not show it |
| height | 120 | yes | The height of the container,you have to change it for your requirement |
| title | '' | no | The title text of the container |
| data | [] | no | The data you give users to picker |
| renderItem | ({item,index})=>{} | no | Function that shows data |
| onCancel | ()=>{} | no | Function that is called when user cancels it |
| onSubmit | (text)=>{} | no | Function that is called when user submits it |
| cancelText | 'cancel' | no | The string that is displayed on the cancel button |
| submitText | 'submit' | no | The string that is displayed on the submit button |

0 comments on commit afbf525

Please sign in to comment.