Skip to content

Commit ee9f928

Browse files
committed
addressed lint checks
1 parent e750891 commit ee9f928

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

js/SegmentedControlTab.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TouchableOpacity,
1414
View,
1515
useColorScheme,
16-
Platform
16+
Platform,
1717
} from 'react-native';
1818

1919
import 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} />

0 commit comments

Comments
 (0)