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 {
13
13
TouchableOpacity ,
14
14
View ,
15
15
useColorScheme ,
16
+ Platform ,
16
17
} from 'react-native' ;
17
18
18
19
import type { FontStyle , ViewStyle } from './types' ;
@@ -95,7 +96,12 @@ export const SegmentedControlTab = ({
95
96
accessibilityHint = { accessibilityHint }
96
97
accessibilityRole = "button"
97
98
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
+ } ) } >
99
105
< View style = { styles . default } >
100
106
{ typeof value === 'number' || typeof value === 'object' ? (
101
107
< Image source = { value } style = { styles . segmentImage } />
You can’t perform that action at this time.
0 commit comments