Skip to content

Instantly share code, notes, and snippets.

@iremkaraoglu
Last active March 27, 2022 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iremkaraoglu/c57364e09498a228dcc17cb79934e070 to your computer and use it in GitHub Desktop.
Save iremkaraoglu/c57364e09498a228dcc17cb79934e070 to your computer and use it in GitHub Desktop.
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.
<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