Skip to content

Instantly share code, notes, and snippets.

View iremkaraoglu's full-sized avatar
🐼

iremkaraoglu iremkaraoglu

🐼
View GitHub Profile
@iremkaraoglu
iremkaraoglu / accessibility.tsx
Last active March 27, 2022 12:48
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>