Accessibility: Picker doesn't open when Talkback is activated
See original GitHub issueDescribe the bug
When the Talkback (VoicerOver on iOS) is activated, the Picker vocalize the “accessibilityLabel” but doesn’t open on double-tap.
If I specify useNativeAndroidPickerStyle={true}
it works but I lose my specific design.
With useNativeAndroidPickerStyle={false}
it doesn’t work.
To Reproduce
Expected behavior
To open as usual.
Screenshots
n/a
Additional details
Device: [Pixel 4a API 30]
OS: [Android 11]
react-native-picker-select version: [8.0.3]
“react”: “16.13.1”,
“react-native”: “0.63.4”,
Reproduction and/or code sample
type Props = {
Icon?: RNPickerSelect["props"]["Icon"];
items: RNPickerSelect["props"]["items"];
value: RNPickerSelect["props"]["value"];
disabled?: RNPickerSelect["props"]["disabled"];
placeholder?: RNPickerSelect["props"]["placeholder"];
onValueChange: RNPickerSelect["props"]["onValueChange"];
useNativeAndroidPickerStyle?: RNPickerSelect["props"]["useNativeAndroidPickerStyle"];
touchableWrapperProps?: RNPickerSelect["props"]["touchableWrapperProps"];
} & PickerProps;
export type PickerSelect = ReturnType<typeof PickerSelect>;
export const PickerSelect = ({
Icon,
items,
value,
onValueChange,
disabled = false,
placeholder = {},
useNativeAndroidPickerStyle = false,
touchableWrapperProps = {}
}: Props): ReactElement<Props> => (
<PickerSelect
items={items}
value={value}
disabled={disabled}
placeholder={placeholder}
onValueChange={onValueChange}
useNativeAndroidPickerStyle={false} // not working
useNativeAndroidPickerStyle={true} // working
Icon={() => <Image ... />
}
touchableWrapperProps={{
accessible: true,
accessibilityLabel: "Select",
accessibilityHint: "Double tap to select an option.",
accessibilityRole: "combobox"}}
pickerProps={{
accessible: true,
accessibilityLabel: "Select", }}
/>
);
Do you know any workaround? Thanks in advance.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
The Language Selector Dropdown on Experience Builder ...
Observe that Talkback announces that this dropdown is "disabled." ... Observe that the dropdown does not open and nothing seems to happen.
Read more >Talkback doesn't announce 'press select to activate' for a Button
We are aware that TalkBack's initial focus in dialogs isn't always optimal, but since TalkBack does it, it should be consistent across apps....
Read more >Turn TalkBack on or off - Android Accessibility Help
On your device, open Settings . Select Accessibility and then TalkBack. Turn Use TalkBack on or off. Select Ok. Things to be aware...
Read more >TalkBack - Accessibility on Android - YouTube
In this episode, learn about TalkBack, the Google screen reader, and how you can use it to improve the Accessibility of your app....
Read more >Android Accessibility Properties and TalkBack - Level Access
If the control is a toggle button, TalkBack announces a role of “Switch” instead of “Button” to indicate that activating this control will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am also facing the same issue 😦
I have tried updating from
to
Also I’ve tried several implementations but none have worked so far.
While TalkBack activated, the “accessibilityLabel” is read but the Picker does not open.