0
0
React Nativemobile~5 mins

Swipeable list items in React Native - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a swipeable list item in mobile apps?
A swipeable list item is a list entry that responds to a horizontal swipe gesture, revealing actions like delete or archive, making interaction faster and intuitive.
Click to reveal answer
beginner
Which React Native component helps create swipeable list items?
The Swipeable component from react-native-gesture-handler allows you to add swipe gestures to list items.
Click to reveal answer
intermediate
Why should you use react-native-gesture-handler for swipe gestures instead of basic touch events?
It provides better gesture recognition, smoother animations, and handles gesture conflicts well, improving user experience.
Click to reveal answer
intermediate
How do you add a delete action on swipe left in a swipeable list item?
You define a function that returns a view with a delete button and pass it to the renderRightActions prop of the Swipeable component.
Click to reveal answer
advanced
What accessibility considerations should you keep in mind for swipeable list items?
Ensure swipe actions are also accessible via buttons or other controls, provide clear labels, and support keyboard navigation for users who cannot swipe.
Click to reveal answer
Which prop of the Swipeable component defines the view shown when swiping left?
ArenderRightActions
BrenderLeftActions
ConSwipeRight
DrightSwipeView
What library do you need to install to use the Swipeable component in React Native?
Areact-native-animatable
Breact-native-swipe-list-view
Creact-native-gesture-handler
Dreact-native-swipeable
What is a common use case for swipeable list items?
ATo scroll vertically through a list
BTo reveal quick actions like delete or archive
CTo zoom into images
DTo open a modal window
Which gesture direction usually reveals the delete action in a swipeable list item?
ASwipe left
BSwipe right
CSwipe up
DSwipe down
How can you improve accessibility for swipeable list items?
ADisable swipe gestures
BHide actions from screen readers
CUse only color to indicate actions
DAdd buttons for actions and provide ARIA labels
Explain how to implement a swipeable list item in React Native using react-native-gesture-handler.
Think about how to show buttons when the user swipes.
You got /4 concepts.
    Describe accessibility best practices for swipeable list items in mobile apps.
    Consider users who cannot perform swipe gestures.
    You got /4 concepts.