react-native-check-box icon indicating copy to clipboard operation
react-native-check-box copied to clipboard

CheckBox size

Open rodrigofbm opened this issue 6 years ago • 3 comments

How to change the size of the checkbox? Version: 2.1.0

rodrigofbm avatar May 07 '18 00:05 rodrigofbm

Worst case scenario you can use your own image or icon and adjust that size

<CheckBox
 onClick={this.onCheckboxClick}
 checkedImage={<MaterialIcons size={40} name="radio-button-checked"  />}
 unCheckedImage={<MaterialIcons  size={40} name="radio-button-unchecked" />}
/>

acomito avatar May 16 '18 12:05 acomito

can't i change check box size without adding own image or icon?

IsharaHansaka avatar May 23 '18 12:05 IsharaHansaka

I edited the component so it acepts checkBoxStyle and override

<Image source={source} style={{tintColor: this.props.checkBoxColor}} />

for

<Image source={source} style={this.props.checkBoxStyle} />

termitavee avatar May 24 '18 15:05 termitavee