diff --git a/js/SegmentedControlTab.js b/js/SegmentedControlTab.js index db2ca25..2469b8a 100644 --- a/js/SegmentedControlTab.js +++ b/js/SegmentedControlTab.js @@ -13,6 +13,7 @@ import { TouchableOpacity, View, useColorScheme, + Platform, } from 'react-native'; import type {FontStyle, ViewStyle} from './types'; @@ -95,7 +96,12 @@ export const SegmentedControlTab = ({ accessibilityHint={accessibilityHint} accessibilityRole="button" accessibilityState={{selected: selected, disabled: !enabled}} - testID={testID}> + testID={testID} + accessible={true} + accessibilityLabel={Platform.select({ + android: testID, + ios: typeof value === 'string' ? value : testID, + })}> {typeof value === 'number' || typeof value === 'object' ? (