Skip to content

Commit

Permalink
feat: added accesibility for selected tab (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronITP committed Mar 20, 2021
1 parent 9d06c2e commit bfb27d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/SegmentedControlTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export const SegmentedControlTab = ({
<TouchableOpacity
style={styles.container}
disabled={!enabled}
onPress={onSelect}>
onPress={onSelect}
accessibilityState={{selected: selected, disabled: !enabled}}>
<View style={[styles.default]}>
{typeof value === 'number' || typeof value === 'object' ? (
<Image source={value} style={styles.segmentImage} />
Expand Down

0 comments on commit bfb27d6

Please sign in to comment.