crazycodeboy / react-native-check-box

Checkbox component for react native, it works on iOS and Android.
MIT License
518 stars 184 forks source link

Adding a color for the checkbox #18

Closed hoangpham95 closed 7 years ago

hoangpham95 commented 7 years ago

Users should be able to change the color of the default check box, in case they don't want to include new images in their source code.

Sample code snippet:

<CheckBox onClick={this.onClick.bind(this)}
        isChecked={this.state.isSelected}
        checkBoxColor={'blue'}
        style={{alignSelf: 'center', position: 'absolute', right: 25}}/>
BasitAli commented 7 years ago

This is now outdated. tintColor needs to be applied through style.

acomito commented 7 years ago

@BasitAli what do you mean? checkBoxColor worked for me.

It should be added to docs though.

BasitAli commented 7 years ago

@acomito it didn't at the time of the comment and I made a pull-request that has since been merged :).