react-native-expand
A expandable component for React Native
Getting started
npm install react-native-expand --save
Example usage
Component { superprops; thisds = BandageIconCallIconDislikeIcon FistIcon FlowersIcon HeartIcon LikeIcon LikingIcon PartyIcon PokeIcon SuperLikeIcon VictoryIcon; } { return <View key=index style=stylesrow> <Image style=stylesthumb source=rowData/> <Text style=stylestext>Rowindex + 1 LOREM_IPSUM</Text> </View> ; } { return <ExpandablePanel contentPanelStyle=stylescontainer dataSource=thisds renderRow=thisrenderRowData /> }
Properties
Prop | Description | Default |
---|---|---|
contentPanelStyle |
The style for the component container. | None |
footerPanelStyle |
The style for the footer container. | None |
footerTextStyle |
The style for the footer text. | None |
dataSource |
The dataSource for the component to use. | None |
renderRow |
The function to defined how the item to be showed. | None |
renderHeader |
The function to render customer header for this component. | None |
minRowCount |
The minimum count of rows to render when the component is collapsed . | 1 |
expandText |
The text to indicate expand operation. | ↓ Load More |
collapseText |
The text to indicate collapse operation. | ↑ Collapse |