Practice and reinforce the concepts from Lesson 3
Transform a basic app screen to be fully accessible for screen reader users and motor disabilities.
You have a food sharing app screen with these elements:
Add Semantic Labels:
<View accessibilityRole="header">
<Text accessibilityRole="heading" accessibilityLevel={1}>
Food Near You
</Text>
</View>
<TextInput
accessibilityLabel="Search for food items"
accessibilityHint="Enter keywords to find available food"
placeholder="Search..."
/>
List Structure:
<FlatList
accessibilityLabel="Available food items"
data={foodItems}
renderItem={({item}) => (
<TouchableOpacity
accessibilityRole="button"
accessibilityLabel={`Request ${item.name} from ${item.donor}`}
accessibilityHint="Double tap to request this food item"
>
<Image
source={item.photo}
accessibilityLabel={`Photo of ${item.name}`}
/>
<Text>{item.name}</Text>
<Text>{item.donor}</Text>
</TouchableOpacity>
)}
/>
Larger Touch Targets:
Voice Control Support:
<TouchableOpacity
accessibilityLabel="Request apple pie"
accessibilityActions={[
{name: 'activate', label: 'Request this item'}
]}
>
Screen Reader Test:
Motor Test:
Complete this activity and submit your work through the Activity Submission Form