Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ indicates accessibility for the individual radio button input and radio button l

### accessibilityLabel
used to set accessibilityLabel for individual radio button input and radio button label components,
radio button input will have accessibilityLabel = [accessibilityLabel]Input[index]
radio button input will have accessibilityLabel = [accessibilityLabel]Radio Button[index]
radio button label will have accessibilityLabel = [accessibilityLabel]Label[index]

### testID
Expand Down
2 changes: 1 addition & 1 deletion lib/SimpleRadioButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class RadioButton extends React.Component {
!this.props.labelHorizontal && Style.labelVerticalWrap
]}>
<RadioButtonInput {...this.props}
accessibilityLabel={accessibilityLabel + 'Input' + accessibilityLabelIndex}
accessibilityLabel={accessibilityLabel + 'Radio Button' + accessibilityLabelIndex}
testID={testID + 'Input' + testIDIndex} />
<RadioButtonLabel {...this.props}
accessibilityLabel={accessibilityLabel + 'Label' + accessibilityLabelIndex}
Expand Down