sanpyaelin / react-native-collapse-view

Collapse component for react native
MIT License
30 stars 16 forks source link

react-native-collapse-view

Install package

$ npm i react-native-collapse-view

Usage

Import the component:

import CollapseView from 'react-native-collapse-view';

<CollapseView 
  renderView={this._renderView}
  renderCollapseView={this._renderCollapseView}
/>

Example

Check full example in the example folder.

Properties

Prop Type Default
collapse bool false
tension number 10
renderView func
renderCollapseView func

License

MIT License. © 2018 San Pyae Lin