Following code renders a Pressable component with a "This is an example" text on it and Accessibility VoiceOver reads it as "This is an example dimmed button" on iOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Pressable | |
disabled | |
accessible={true} | |
accessibilityRole="button" | |
accessibilityState={{ disabled: true }}> | |
<Text> This is an example </Text> | |
</Pressable> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment