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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents