From c2d738c2edf75e903692c489112bf430c1299787 Mon Sep 17 00:00:00 2001 From: Joonmo Yang <8017201+Remagpie@users.noreply.github.com> Date: Tue, 5 May 2020 21:15:37 +0900 Subject: [PATCH] feat: add color and uncheckedColor prop to RadioButton.Item (#1892) --- src/components/RadioButton/RadioButtonItem.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/RadioButton/RadioButtonItem.tsx b/src/components/RadioButton/RadioButtonItem.tsx index 76f2f3de6b..9cffcc3d67 100644 --- a/src/components/RadioButton/RadioButtonItem.tsx +++ b/src/components/RadioButton/RadioButtonItem.tsx @@ -27,6 +27,14 @@ export type Props = { * Function to execute on press. */ onPress?: () => void; + /** + * Custom color for unchecked radio. + */ + uncheckedColor?: string; + /** + * Custom color for radio. + */ + color?: string; /** * Status of radio button. */ @@ -90,6 +98,8 @@ class RadioButtonItem extends React.Component { style, labelStyle, onPress, + color, + uncheckedColor, status, theme: { colors }, } = this.props; @@ -113,7 +123,12 @@ class RadioButtonItem extends React.Component { > {label} - + );