Check out example codes for "disable trailing swipe action swift". It will help you in understanding the concepts better.

Code Example 1

// instead of:

return UISwipeActionsConfiguration(actions: [deleteAction])

// do something like this:

let configuration = UISwipeActionsConfiguration(actions: [deleteAction])
configuration.performsFirstActionWithFullSwipe = false
return configuration

Learn ReactJs, React Native from akashmittal.com