Skip to content

Commit

Permalink
refactor: add props itemStyle to RadioSelect component
Browse files Browse the repository at this point in the history
  • Loading branch information
gca-axelor committed Jan 26, 2024
1 parent 7687596 commit 2cd3dae
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ interface RadioItem {

const RadioSelect = ({
style,
itemStyle,
items,
question,
radioSize,
Expand All @@ -36,6 +37,7 @@ const RadioSelect = ({
defaultValue,
}: {
style?: any;
itemStyle?: any;
items: RadioItem[];
question?: string;
radioSize?: number;
Expand All @@ -59,7 +61,8 @@ const RadioSelect = ({
{question}
</Text>
)}
<View style={[{flexDirection: direction}, styles.itemsContainer]}>
<View
style={[{flexDirection: direction}, styles.itemsContainer, itemStyle]}>
{items.map(item => (
<RadioButton
key={item.id}
Expand Down

0 comments on commit 2cd3dae

Please sign in to comment.