File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,4 @@ Circle-style checkbox component for React Native.
35
35
- ` label ` : Checkbox label. Default: empty
36
36
- ` labelPosition ` : Label rendering position. Default: ` right ` , may be 'right' or 'left'
37
37
- ` styleCheckboxContainer ` : Styles for checkbox container.
38
+ - ` styleLabel ` : Styles for label.
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class CircleCheckBox extends Component {
29
29
onToggle : React . PropTypes . func . isRequired ,
30
30
labelPosition : React . PropTypes . oneOf ( [ 'right' , 'left' ] ) ,
31
31
styleCheckboxContainer : View . propTypes . style ,
32
+ styleLabel : View . propTypes . style ,
32
33
} ;
33
34
34
35
static defaultProps = {
@@ -40,7 +41,8 @@ class CircleCheckBox extends Component {
40
41
filterColor : '#FFF' ,
41
42
innerColor : '#FC9527' ,
42
43
label : '' ,
43
- labelPosition : 'right'
44
+ labelPosition : 'right' ,
45
+ styleLabel : { }
44
46
} ;
45
47
46
48
constructor ( props ) {
@@ -104,7 +106,7 @@ class CircleCheckBox extends Component {
104
106
_renderLabel ( position ) {
105
107
var templ = ( < View > </ View > ) ;
106
108
if ( ( this . props . label . length > 0 ) && ( position === this . props . labelPosition ) ) {
107
- templ = ( < Text style = { styles . checkBoxLabel } > { this . props . label } </ Text > ) ;
109
+ templ = ( < Text style = { [ styles . checkBoxLabel , this . props . styleLabel ] } > { this . props . label } </ Text > ) ;
108
110
}
109
111
return templ ;
110
112
You can’t perform that action at this time.
0 commit comments