File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 TouchableOpacity ,
1414 View ,
1515 useColorScheme ,
16+ Platform ,
1617} from 'react-native' ;
1718
1819import type { FontStyle , ViewStyle } from './types' ;
@@ -95,7 +96,12 @@ export const SegmentedControlTab = ({
9596 accessibilityHint = { accessibilityHint }
9697 accessibilityRole = "button"
9798 accessibilityState = { { selected : selected , disabled : ! enabled } }
98- testID = { testID } >
99+ testID = { testID }
100+ accessible = { true }
101+ accessibilityLabel = { Platform . select ( {
102+ android : testID ,
103+ ios : typeof value === 'string' ? value : testID ,
104+ } ) } >
99105 < View style = { styles . default } >
100106 { typeof value === 'number' || typeof value === 'object' ? (
101107 < Image source = { value } style = { styles . segmentImage } />
You can’t perform that action at this time.
0 commit comments