File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ type Props = $ReadOnly<{|
28
28
tabStyle ?: ViewStyle ,
29
29
appearance ?: 'dark' | 'light' | null ,
30
30
accessibilityHint ?: string ,
31
+ testID ?: string ,
31
32
| } > ;
32
33
33
34
function isBase64 ( str ) {
@@ -47,6 +48,7 @@ export const SegmentedControlTab = ({
47
48
appearance,
48
49
tabStyle,
49
50
accessibilityHint,
51
+ testID,
50
52
} : Props ) : React . Node => {
51
53
const colorSchemeHook = useColorScheme ( ) ;
52
54
const colorScheme = appearance || colorSchemeHook ;
@@ -93,7 +95,7 @@ export const SegmentedControlTab = ({
93
95
accessibilityHint = { accessibilityHint }
94
96
accessibilityRole = "button"
95
97
accessibilityState = { { selected : selected , disabled : ! enabled } } >
96
- < View style = { styles . default } >
98
+ < View testID = { testID } style = { styles . default } >
97
99
{ typeof value === 'number' || typeof value === 'object' ? (
98
100
< Image source = { value } style = { styles . segmentImage } />
99
101
) : isBase64 ( value ) ? (
You can’t perform that action at this time.
0 commit comments