react-native-collapse-view-spaceo
Version:
45 lines (33 loc) • 942 B
Markdown
<img src="https://raw.githubusercontent.com/sanpyaelin/react-native-collapse-view/master/images/demo.gif" width="200">
```bash
$ npm i react-native-collapse-view
```
Import the component:
```js
import CollapsingToolbar from 'react-native-collapse-view';
render() {
return (
<View style={styles.container}>
<CollapseView
renderView={this._renderView}
renderCollapseView={this._renderCollapseView}
/>
</View>
);
}
```
Check full example in the [example](https://github.com/sanpyaelin/react-native-collapse-view/blob/master/example/index.js) folder.
Prop | Type | Default
-----|------|---------
collapse | bool | false
tension| number | 10
renderView| func |
renderCollapseView | func |
[](http://opensource.org/licenses/mit-license.html). © 2018 San Pyae Lin