Skip to content

Restore a11y functionality on Android (fix for issue 792) - #963

Open
rneiss wants to merge 2 commits into
henninghall:masterfrom
rneiss:master
Open

rneiss wants to merge 2 commits into
henninghall:masterfrom
rneiss:master

Conversation

@rneiss

@rneiss rneiss commented Mar 16, 2026

Copy link
Copy Markdown

Summary
Fixes Android accessibility issue where the NumberPicker is not exposed to TalkBack and Appium (Issue #792).

Problem
In version 5.0.0, the setVisibleToUser() calls in the accessibility code were commented out, causing the NumberPicker components to be invisible to accessibility services like TalkBack and automated testing tools like Appium. This made the picker unusable for non-sighted users and prevented native test automation.

Solution
Added custom isPickerVisibleToUser() helper methods that safely check visibility in React Native context by verifying that the View and parents are shown, Positive dimensions exist, and that the View is attached to visiblewindow, and restored setVisibleToUser() calls.

@ClawGibson

Copy link
Copy Markdown

Please merge this!

Comment thread android/src/main/java/com/henninghall/date_picker/generated/NumberPicker.java Outdated
…mberPicker.java

Co-authored-by: Oğuzhan Selim Temiz <oguzhanselimtemiz@gmail.com>

This branch had an error being deployed

1 failed deployment
e2e Android — 3076a907 Deployed Mar 30, 2026 by rneiss via Test / Android - e2e #266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants