react-native-action-sheet-xg
Version:
react native ActionSheet component for both Android and IOS, useing pure JavaScript
37 lines (25 loc) • 1.01 kB
Markdown
## react-native-action-sheet
ActionSheet component for React Native Application (ios / android)
### Examples
actionSheet

### Usage
**install from npm**
``` shell
npm install --save react-native-action-sheet-xg
```
**import in project**
``` js
import ActionSheet from 'react-native-action-sheet-xg';
```
## Properties
| Prop | Default | Type | Description |
| :------------ |:---------------:| :---------------:| :-----|
| title | - | `string` | the title of the action sheet |
| message | - | `string | the message of the title |
| options | - | 'array' | the item of the action sheet|
| cancelButtonIndex | - | 'number' | the index of the cancel button of the options|
| destructiveButtonIndex | - | 'number' | the index of the destructiove button of the options|
| ref | - | 'string' | the ref name of the component|
| callback | - | 'function' | the callback of the chose|
LICENSE MIT