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

Code Example 1

override func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle {
    if tableView.editing {
        return UITableViewCellEditingStyle.Delete
    }
    return UITableViewCellEditingStyle.None
}

Learn ReactJs, React Native from akashmittal.com