-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |