In this recipe, we'll learn how to create list items in a ListView with an animated sideways slide. If the user slides the item past a threshold, the item is removed. This is a common pattern in many mobile apps with editable lists. We are also going to see how to use PanResponder to handle drag events.
Removing items from a list component
Getting ready
We need to create an empty app. For this recipe, we'll name it removing-list-items.
We also need to create a new ContactList folder and two files inside it: index.js and ContactItem.js.
How to do it...
- Let&apos...