Closed
Description
Description
Our project is a hybrid of React Native modules and native UI. We are adding accessibility to our App and are hitting a weird issue with Talkback in TextInput:
If there is any clickable element before a TextInput in the view hierarchy, double tapping to add focus to the TextInput using Talkback sends the focus to the clickable element before it.
Reproduction
I have been able to reproduce the bug in a sample app: https://github.com/oargaruna/TextInputTalkback
- Deploy the App on an Android device
- Enable Talkback (from Settings -> Accessibility) and open the Sample App
- Tap once on the TextInput to give it Talkback focus
- Tap twice to try to get the keyboard to come up
We expect the keyboard to show up with focus on the TextInput, but the focus jumps to the TouchableOpacity element defined before it.
If the TouchableOpacity element is removed, this behaviour is not reproducible.
Additional Information
- React Native version: 0.41.1
- Platform: Android