From 183f7c74c2e712091f1c057c0b898f1be5c8ac63 Mon Sep 17 00:00:00 2001 From: AaronITP Date: Mon, 8 Mar 2021 10:40:46 +0100 Subject: [PATCH 1/2] feat added accesibility for selected tab --- js/SegmentedControlTab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/SegmentedControlTab.js b/js/SegmentedControlTab.js index ea6f3314..86fa7b80 100644 --- a/js/SegmentedControlTab.js +++ b/js/SegmentedControlTab.js @@ -84,7 +84,8 @@ export const SegmentedControlTab = ({ + onPress={onSelect} + accessibilityState={{selected: selected}}> {typeof value === 'number' || typeof value === 'object' ? ( From 59b622bd5c501005afe96675e9d246becab5710c Mon Sep 17 00:00:00 2001 From: AaronITP Date: Tue, 9 Mar 2021 15:23:44 +0100 Subject: [PATCH 2/2] feat: disabled specified for accessibility --- js/SegmentedControlTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/SegmentedControlTab.js b/js/SegmentedControlTab.js index 86fa7b80..39eeb07b 100644 --- a/js/SegmentedControlTab.js +++ b/js/SegmentedControlTab.js @@ -85,7 +85,7 @@ export const SegmentedControlTab = ({ style={styles.container} disabled={!enabled} onPress={onSelect} - accessibilityState={{selected: selected}}> + accessibilityState={{selected: selected, disabled: !enabled}}> {typeof value === 'number' || typeof value === 'object' ? (