sichacvah / react-native-radio-button-android

4 stars 4 forks source link

Color is retained while value is off #6

Open Noitidart opened 6 years ago

Noitidart commented 6 years ago

When the radio is off, button is still retaining the color. It should be uncolored when disabled. I tried to do a color={value ? 'blue' : undefined} however this causes error with problems updating color.

<RadioButton value={!!value} onValueChange={this.handleValueChange} disabled={disabled} color="blue" />