react-expandable-listview
react-expandable-listview copied to clipboard
Customise sub components such as header and item
I wanna use a completely different header in my app 😛
@stevemao what sort of header would you like to include?
Any arbitrary component
Sent from my iPhone
On 21 Nov 2015, at 10:01 PM, Robert Chang [email protected] wrote:
@stevemao what sort of header would you like to include?
— Reply to this email directly or view it on GitHub.
What about this:
import CustomHeader from 'CustomHeader';
import CustomItem from 'CustomItem';
<ReactExpandableListView
data={data}
header={CustomHeader}
item={CustomItem}
styles={styles}
/>
this is a good suggestion, however, think about how could you manage the headers and items without loop through each of them? it's difficult to pass in the whole objects as props.
the options already supply you styles
option. You can use it to achieve your needs.
I think this is achieveable....