File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
1313 TouchableOpacity ,
1414 View ,
1515 useColorScheme ,
16- Platform
16+ Platform ,
1717} from 'react-native' ;
1818
1919import type { FontStyle , ViewStyle } from './types' ;
@@ -97,8 +97,11 @@ export const SegmentedControlTab = ({
9797 accessibilityRole = "button"
9898 accessibilityState = { { selected : selected , disabled : ! enabled } }
9999 testID = { testID }
100- accessible = { true }
101- accessibilityLabel = { Platform . select ( { android : testID , ios : value == 'string' ? value : testID } ) } >
100+ accessible = { true }
101+ accessibilityLabel = { Platform . select ( {
102+ android : testID ,
103+ ios : typeof value === 'string' ? value : testID
104+ } ) } >
102105 < View style = { styles . default } >
103106 { typeof value === 'number' || typeof value === 'object' ? (
104107 < Image source = { value } style = { styles . segmentImage } />
You can’t perform that action at this time.
0 commit comments