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