react-native-collapse-view

1.0.0 • Public • Published

react-native-collapse-view

Screen Shot

Install package

$ npm i react-native-collapse-view

Usage

Import the component:

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 folder.

Properties

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

License

MIT License. © 2018 San Pyae Lin

Package Sidebar

Install

npm i react-native-collapse-view

Weekly Downloads

1,039

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sanpyaelin