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.
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 thebackgroundColor
or something like that and keep the other styles.