Open biadars opened 3 months ago
:warning: | Add or Reformat Version Info |
---|---|
:information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |
FYI this also occurs on iOS 16 - I've now tested it on iOS 16.7.8
Hi @biadars I'm interested with this issue and tried to reproduce from your code with iOS 16.1.1 device and react native 0.74.3, something different happened than you described, my VoiceOver read the disabled minus button as "Dimmed button minus" and another add button as "button add".
I manually disabled the minus button:
<TouchableOpacity onPress={() => setCounter(counter - 1)}
role="button"
accessibilityRole="button"
disabled={true}
accessibilityState={{disabled: true}}
>
Here is my reproducing video: https://github.com/user-attachments/assets/a2ed8587-5d4c-4e75-b4c6-0eef407e476f
Description
I'm seeing two strange behaviours around the disabled property and accessibilitState.disabled on iOS:
Both of these issues happen on iOS (I'm including a snack, my iOS version is 17.5.1 - I've not tested this on other iOS versions), but TalkBack correctly reads out the button role and accessibilityState.
Steps to reproduce
Expected behaviour
Actual behaviour
React Native Version
0.74.0
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/_f-0w64MnvIqQ65myDxPW
Screenshots and Videos
No response