UNPKG

react-native-collapse-view-spaceo

Version:
45 lines (33 loc) 942 B
# react-native-collapse-view ## Screen Shot <img src="https://raw.githubusercontent.com/sanpyaelin/react-native-collapse-view/master/images/demo.gif" width="200"> ## Install package ```bash $ npm i react-native-collapse-view ``` ## Usage 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> ); } ``` ##Example Check full example in the [example](https://github.com/sanpyaelin/react-native-collapse-view/blob/master/example/index.js) folder. ## Properties Prop | Type | Default -----|------|--------- collapse | bool | false tension| number | 10 renderView| func | renderCollapseView | func | ## License [MIT License](http://opensource.org/licenses/mit-license.html). © 2018 San Pyae Lin