File tree 1 file changed +16
-1
lines changed
src/components/RadioButton
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,14 @@ export type Props = {
27
27
* Function to execute on press.
28
28
*/
29
29
onPress ?: ( ) => void ;
30
+ /**
31
+ * Custom color for unchecked radio.
32
+ */
33
+ uncheckedColor ?: string ;
34
+ /**
35
+ * Custom color for radio.
36
+ */
37
+ color ?: string ;
30
38
/**
31
39
* Status of radio button.
32
40
*/
@@ -90,6 +98,8 @@ class RadioButtonItem extends React.Component<Props> {
90
98
style,
91
99
labelStyle,
92
100
onPress,
101
+ color,
102
+ uncheckedColor,
93
103
status,
94
104
theme : { colors } ,
95
105
} = this . props ;
@@ -113,7 +123,12 @@ class RadioButtonItem extends React.Component<Props> {
113
123
>
114
124
{ label }
115
125
</ Text >
116
- < RadioButton value = { value } status = { status } > </ RadioButton >
126
+ < RadioButton
127
+ value = { value }
128
+ status = { status }
129
+ color = { color }
130
+ uncheckedColor = { uncheckedColor }
131
+ />
117
132
</ View >
118
133
</ TouchableRipple >
119
134
) ;
You can’t perform that action at this time.
0 commit comments