Conditional Styling

suggest change
<View style={[this.props.isTrue ? styles.bgcolorBlack : styles.bgColorWhite]} />

If isTrue is true, the view uses the black background style. Otherwise it uses the white one. Those two styles are defined elsewhere.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents