I'm programming a react native game app for blind kids to help them with maths. There is a game in which they have to count how many animals are in the screen; when an animal is pressed it emits a sound.
In react native there is the onPress
property of <TouchableWithouFeedback />
which allows me to play the sound, but when it comes to visually impaired users I have to announce that there is an animal instead of just playing the sound.
How can I know if a certain View
is focused by the screen reader and call a function to do that?