Conditional Styling

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

If the value of isTrue is true then it will have black background color otherwise white.

Feedback about page:

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



Table Of Contents