ActionSheet component for React Native Application (ios / android)
install from npm
npm install --save react-native-action-sheet-xg
import in project
import ActionSheet from 'react-native-action-sheet-xg';
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