naoufal / react-native-accordion

An Accordion Component for React Native
https://www.npmjs.com/package/react-native-accordion
437 stars 101 forks source link

Active styles + different header when expanded #38

Closed ntwcklng closed 7 years ago

ntwcklng commented 7 years ago

Should close #9.

Not sure about the styles - maybe style={[this.props.style, this.state.is_visible && this.props.styleOpen]} would be better, so the initial styles gets overwritten? In most cases you just want to change the backgroundColor or something like that and keep the other styles.

compojoom commented 7 years ago

That's cool! Hope that it will be merged.

ntwcklng commented 7 years ago

ping @naoufal