diff --git a/lib/RadioGroup.tsx b/lib/RadioGroup.tsx index fe5766f..c8c4b3f 100644 --- a/lib/RadioGroup.tsx +++ b/lib/RadioGroup.tsx @@ -12,7 +12,8 @@ export default function RadioGroup({ onPress, radioButtons, selectedId, - testID + testID, + disabled = false }: RadioGroupProps) { function handlePress(id: string) { @@ -41,6 +42,7 @@ export default function RadioGroup({ labelStyle={button.labelStyle || labelStyle} selected={button.id === selectedId} onPress={handlePress} + disabled={disabled} /> ))} diff --git a/lib/types.ts b/lib/types.ts index 0e44bff..77b6f33 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -31,4 +31,5 @@ export type RadioGroupProps = { radioButtons: RadioButtonProps[]; selectedId?: string; testID?: string; + disabled?: boolean; };