Is it possible to perform ternary for 3 conditions but with one default condition ?
Here is my code :
<Button
rounded={true}
title='Add Address'
backgroundColor='#2980b9'
rightIcon={{name: 'arrow-forward'}}
disabled={this.state.timeSlotItemSelected === null || this.state.quantityItemSelected === null ? true : false}
/>
In this, this.state.timeSlotItemSelected is default. What I need, is whenever this.state.timeSlotItemSelected and this.state.quantityItemSelected are null, the result should be true, and whenever this.state.timeSlotItemSelected and this.state.deliveryOptionSelected are null, then it should also be true. Otherwise it should be false.
How do I perform this for both conditions?