Closed wheycool closed 8 years ago
Hey @wheycool, you could do something like this:
export default class ListRow extends React.Component {
render() {
<View>
<Accordion
ref="Accordion"
{...}
/>
<TouchableHighlight
onPress={this._handleFooterPress.bind(this)}
>
<Text>This is your footer</Text>
</TouchableHighlight>
</View>
}
_handleFooterPress() {
this.refs.Accordion.open();
}
}
Hope that works!
Is it possible (or can you suggest how) to add a footer to the accordion? I'd like the
content
to be sandwiched between theheader
and proposedfooter
. Thanks!