The web gives you a lot for free. A <button> is focusable, announces itself as a button, responds to space and enter, and shows a focus ring, and you get all of that by typing seven characters. React Native gives you View and Pressable . A Pressable is tappable and otherwise says nothing about itself to anybody.
Munchable 's app is 37 hand-written components and 20 route files, and it builds every control it has out of those primitives. There is no component library underneath it. So I went and counted what the semantics actually cost, by grepping for every accessibility prop in src/ and app/ :
Pressable / TouchableOpacity 129 accessibilityLabel 42 accessibilityRole 36 accessibilityState 18 hitSlop 15 accessibilityHint 3 accessible={false} 1 StyleSheet.create 2
Enter fullscreen mode
Exit fullscreen mode
Three of those numbers are worth defending and one of them is the whole post.
Why roles are fewer than pressables, and hints are nearly none
129 against 36 looks like a 72 per cent failure rate.…