Thank you for your post. I had to implement this myself and I found a similar solution (with useFocusEffect and a component that I use in every screen to target the correct element to receive focus).
I see that your code targets only iOS. I currently have trouble with android. Talkback does not read anything when calling setAccessibilityFocus when useFocusEffect occurs.
Did you found a way to make it work on android?
(PS: I think talkback in broken since react-navigation 6)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi,
Thank you for your post. I had to implement this myself and I found a similar solution (with useFocusEffect and a component that I use in every screen to target the correct element to receive focus).
I see that your code targets only iOS. I currently have trouble with android. Talkback does not read anything when calling
setAccessibilityFocus
whenuseFocusEffect
occurs.Did you found a way to make it work on android?
(PS: I think talkback in broken since react-navigation 6)