UNPKG

react-native-accordion-xg

Version:

Accordion component for React Native Application (ios / android)

38 lines (26 loc) 1.14 kB
## react-native-action-sheet Accordion component for React Native Application (ios / android) ### Examples accordion ![image](https://raw.githubusercontent.com/lulutia/images/master/react-native-components/Screen-Capture-55.gif) ### Usage **install from npm** ``` shell npm install --save react-native-accordion-xg ``` **import in project** ``` js import Accordion from 'react-native-accordion-xg'; ``` ## Properties | Prop | Default | Type | Description | | :------------ |:---------------:| :---------------:| :-----| | item | - | `array` | the data of the accordion | | headerRender | - | `function` | the way to render the header | | contentRender | - | 'function' | the way to render the content| | headerName | - | 'string' | the key of the item that indicates the data for the header| | contentName | - | 'string' | the key of the item that indicates the data for the content| | maxHeight | - | 'number' | the max height of the content to show| | duration | - | 'number' | the duration of the hidden content to show| | backgroundColor | - | 'number' | the backgroundColoe of the content when bounced in ios | LICENSE MIT