1.0.1 • Published 7 years ago

react-native-expandableview v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

react-native-expandableview

React native expandable view npm package

Sample Presentation Video

https://youtu.be/sG52B-sFwpU

Usage

npm i react-native-expandableview --save

import ExpandableView from 'react-native-expandableview'

export default class example extends Component {
  render() {
    return (
       
       
            <ExpandableView 
              contet={<View><Text>Tap Me!</Text></View>}
              child={<View><Text>Hello!</Text></View>}
              />
            
     
    );
  }
}

Props

PropDefaul valueTypeDescription
contetView, Text, ImageRenderable ViewParent element view
childView, TextRenderable ViewChild element view
childHeight50numberChild element view´s height
style-objectCustom style
expandedDuration400numberDuration of expansion in milliseconds
fadeInDuration400numberDuration of expansion in milliseconds
fadeOutDuration400numberFade Out duration in milliseconds
callback-callback function(state)A callback function for tap event

Run example

  1. clone
  2. cd react-native-expandableview/example
  3. npm install
  4. react-native run-ios

Contact

Twitter: @holaconstancio